Skip to content

Commit 0a3c755

Browse files
committed
Add test
1 parent 422b541 commit 0a3c755

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/// <reference path="fourslash.ts" />
2+
3+
//@Filename: jsxExpressionFollowedByIdentifier.tsx
4+
////declare var React: any;
5+
////declare var x: string;
6+
////const a = <div>{<div />/*1*/x/*2*/}</div>
7+
8+
goTo.marker('1');
9+
verify.getSyntacticDiagnostics([{
10+
code: 1005,
11+
message: "'}' expected.",
12+
range: {
13+
fileName: test.marker('1').fileName,
14+
pos: test.marker('1').position,
15+
end: test.marker('2').position,
16+
}
17+
}]);
18+
verify.quickInfoIs('var x: string');

0 commit comments

Comments
 (0)