TypeScript/tests/cases/fourslash/jsxExpressionFollowedByIdentifier.ts

13 lines
416 B
TypeScript
Raw Normal View History

2019-05-20 21:26:12 +02:00
/// <reference path="fourslash.ts" />
//@Filename: jsxExpressionFollowedByIdentifier.tsx
////declare var React: any;
2019-05-20 23:58:25 +02:00
////const a = <div>{<div />[|x|]}</div>
////const b = <div x={<div />[|x|]} />
2019-05-20 21:26:12 +02:00
test.ranges().forEach(range => {
2019-05-22 19:00:09 +02:00
verify.errorExistsAtRange(range, ts.Diagnostics._0_expected.code, "'}' expected.");
// This is just to ensure getting quick info doesnt crash
verify.not.quickInfoExists();
});