diff --git a/tests/cases/fourslash/jsxExpressionFollowedByIdentifier.ts b/tests/cases/fourslash/jsxExpressionFollowedByIdentifier.ts new file mode 100644 index 00000000000..8d93244e01e --- /dev/null +++ b/tests/cases/fourslash/jsxExpressionFollowedByIdentifier.ts @@ -0,0 +1,18 @@ +/// + +//@Filename: jsxExpressionFollowedByIdentifier.tsx +////declare var React: any; +////declare var x: string; +////const a =
{
/*1*/x/*2*/}
+ +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'); \ No newline at end of file