TypeScript/tests/cases/conformance/jsx/tsxErrorRecovery1.tsx

11 lines
199 B
TypeScript
Raw Normal View History

2015-06-22 20:53:38 +02:00
//@filename: file.tsx
//@jsx: preserve
declare namespace JSX { interface Element { } }
function foo() {
var x = <div> { </div>
}
// Shouldn't see any errors down here
var y = { a: 1 };