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

15 lines
279 B
TypeScript
Raw Normal View History

//@jsx: preserve
//@filename: file.tsx
declare module JSX {
interface Element { }
interface IntrinsicElements {
[s: string]: any;
}
}
// This should be a parse error
const class1 = "foo";
const class2 = "bar";
const elem = <div className={class1, class2}/>;