TypeScript/tests/cases/compiler/useBeforeDeclaration_jsx.tsx
2018-12-23 23:13:46 +01:00

17 lines
329 B
TypeScript

// @jsx: preserve
// @target: ES6
namespace JSX {
export interface Element {}
}
class C {
static a = <C.z></C.z>;
static b = <C.z/>;
static c = <span {...C.x}></span>;
static d = <span id={C.y}></span>;
static e = <span>{C.y}</span>;
static x = {};
static y = '';
static z = () => <b></b>;
}