mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-18 22:45:50 -06:00
Add test
This commit is contained in:
parent
422b5414f1
commit
0a3c755fc2
18
tests/cases/fourslash/jsxExpressionFollowedByIdentifier.ts
Normal file
18
tests/cases/fourslash/jsxExpressionFollowedByIdentifier.ts
Normal file
@ -0,0 +1,18 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
//@Filename: jsxExpressionFollowedByIdentifier.tsx
|
||||
////declare var React: any;
|
||||
////declare var x: string;
|
||||
////const a = <div>{<div />/*1*/x/*2*/}</div>
|
||||
|
||||
goTo.marker('1');
|
||||
verify.getSyntacticDiagnostics([{
|
||||
code: 1005,
|
||||
message: "'}' expected.",
|
||||
range: {
|
||||
fileName: test.marker('1').fileName,
|
||||
pos: test.marker('1').position,
|
||||
end: test.marker('2').position,
|
||||
}
|
||||
}]);
|
||||
verify.quickInfoIs('var x: string');
|
||||
Loading…
x
Reference in New Issue
Block a user