mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
23 lines
475 B
TypeScript
23 lines
475 B
TypeScript
//// [tests/cases/conformance/jsx/jsxParsingError1.tsx] ////
|
|
|
|
//// [file.tsx]
|
|
declare namespace 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}/>;
|
|
|
|
|
|
//// [file.jsx]
|
|
"use strict";
|
|
// This should be a parse error
|
|
const class1 = "foo";
|
|
const class2 = "bar";
|
|
const elem = <div className={(class1, class2)}/>;
|