2017-02-17 22:13:26 +01:00
|
|
|
// @filename: file.tsx
|
|
|
|
// @jsx: preserve
|
|
|
|
// @module: amd
|
|
|
|
// @noLib: true
|
|
|
|
// @strictNullChecks: true
|
2017-12-16 01:13:28 +01:00
|
|
|
// @skipLibCheck: true
|
2017-02-17 22:13:26 +01:00
|
|
|
// @libFiles: react.d.ts,lib.d.ts
|
|
|
|
|
|
|
|
import React = require('react');
|
|
|
|
|
|
|
|
const Foo = (props: any) => null;
|
|
|
|
|
|
|
|
function Greet(x: {name?: string}) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
const foo = <Foo />;
|
|
|
|
const G = <Greet />;
|