// @filename: file.tsx
// @jsx: preserve
// @noLib: true
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
// @strictNullChecks: true
import React = require('react');
interface Prop {
a: number,
b: string,
children: string | JSX.Element
}
function Comp(p: Prop) {
return
{p.b}
;
}
// Error: missing children
let k = ;
let k0 =
hi hi hi!
;
let o = {
children:"Random"
}
let k1 =
hi hi hi!
;
// Error: incorrect type
let k2 =
My Div
{(name: string) => My name {name}
}
;
let k3 =
My Div
{1000000}
;
let k4 =
My Div
hi hi hi!
;
let k5 =
My Div
My Div
;