648bd6e9e0
* Skip more lib checks, improve test execution time a bit more * Change complexRecursiveCollections to still check * Remove way more
26 lines
No EOL
529 B
TypeScript
26 lines
No EOL
529 B
TypeScript
// @filename: file.tsx
|
|
// @jsx: react
|
|
// @noLib: true
|
|
// @skipLibCheck: true
|
|
// @libFiles: react.d.ts,lib.d.ts
|
|
|
|
import React = require('react');
|
|
|
|
function EmptySFC1() {
|
|
return <div>hello</div>;
|
|
}
|
|
|
|
function EmptySFC2() {
|
|
return <div>Hello</div>;
|
|
}
|
|
|
|
function SFC2(prop: { x: boolean }) {
|
|
return <h1>World</h1>;
|
|
}
|
|
|
|
var EmptySFCComp = EmptySFC1 || EmptySFC2;
|
|
var SFC2AndEmptyComp = SFC2 || EmptySFC1;
|
|
|
|
let a = <EmptySFCComp />
|
|
let a1 = <EmptySFCComp data-prop />
|
|
let b = <SFC2AndEmptyComp x /> |