mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
897 B
Plaintext
32 lines
897 B
Plaintext
//// [tests/cases/conformance/jsx/jsxParsingError1.tsx] ////
|
|
|
|
=== file.tsx ===
|
|
declare namespace JSX {
|
|
>JSX : Symbol(JSX, Decl(file.tsx, 0, 0))
|
|
|
|
interface Element { }
|
|
>Element : Symbol(Element, Decl(file.tsx, 0, 23))
|
|
|
|
interface IntrinsicElements {
|
|
>IntrinsicElements : Symbol(IntrinsicElements, Decl(file.tsx, 1, 22))
|
|
|
|
[s: string]: any;
|
|
>s : Symbol(s, Decl(file.tsx, 3, 3))
|
|
}
|
|
}
|
|
|
|
// This should be a parse error
|
|
const class1 = "foo";
|
|
>class1 : Symbol(class1, Decl(file.tsx, 8, 5))
|
|
|
|
const class2 = "bar";
|
|
>class2 : Symbol(class2, Decl(file.tsx, 9, 5))
|
|
|
|
const elem = <div className={class1, class2}/>;
|
|
>elem : Symbol(elem, Decl(file.tsx, 10, 5))
|
|
>div : Symbol(JSX.IntrinsicElements.__index, Decl(file.tsx, 2, 30))
|
|
>className : Symbol(className, Decl(file.tsx, 10, 17))
|
|
>class1 : Symbol(class1, Decl(file.tsx, 8, 5))
|
|
>class2 : Symbol(class2, Decl(file.tsx, 9, 5))
|
|
|