2015-07-07 20:37:55 +02:00
|
|
|
tests/cases/conformance/jsx/tsxReactEmit4.tsx(12,5): error TS2304: Cannot find name 'blah'.
|
2015-06-18 23:04:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
==== tests/cases/conformance/jsx/tsxReactEmit4.tsx (1 errors) ====
|
|
|
|
declare module JSX {
|
|
|
|
interface Element { }
|
|
|
|
interface IntrinsicElements {
|
|
|
|
[s: string]: any;
|
|
|
|
}
|
|
|
|
}
|
2015-07-07 20:37:55 +02:00
|
|
|
declare var React: any;
|
2015-06-18 23:04:11 +02:00
|
|
|
|
|
|
|
var p;
|
|
|
|
var openClosed1 = <div>
|
|
|
|
|
|
|
|
{blah}
|
|
|
|
~~~~
|
|
|
|
!!! error TS2304: Cannot find name 'blah'.
|
|
|
|
|
|
|
|
</div>;
|
2015-06-19 20:30:34 +02:00
|
|
|
|
|
|
|
// Should emit React.__spread({}, p, {x: 0})
|
|
|
|
var spread1 = <div {...p} x={0} />;
|