TypeScript/tests/baselines/reference/tsxErrorRecovery1.js
2015-08-07 15:46:36 -07:00

20 lines
324 B
TypeScript

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