TypeScript/tests/baselines/reference/tsxErrorRecovery1.js

20 lines
298 B
TypeScript

//// [file.tsx]
declare namespace JSX { interface Element { } }
function foo() {
var x = <div> { </div>
}
// Shouldn't see any errors down here
var y = { a: 1 };
//// [file.jsx]
function foo() {
var x = <div> {}div>
}
// Shouldn't see any errors down here
var y = {a} 1 };
</>;
}