TypeScript/tests/baselines/reference/tsxErrorRecovery1.js

20 lines
324 B
TypeScript
Raw Normal View History

2015-06-22 20:53:38 +02:00
//// [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 };
</>;
2015-06-22 20:53:38 +02:00
}