mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
414 B
Plaintext
20 lines
414 B
Plaintext
//// [tests/cases/compiler/checkJsxNotSetError.ts] ////
|
|
|
|
=== /foo.jsx ===
|
|
const Foo = () => (
|
|
>Foo : Symbol(Foo, Decl(foo.jsx, 0, 5))
|
|
|
|
<div>foo</div>
|
|
);
|
|
export default Foo;
|
|
>Foo : Symbol(Foo, Decl(foo.jsx, 0, 5))
|
|
|
|
=== /bar.jsx ===
|
|
import Foo from '/foo';
|
|
>Foo : Symbol(Foo, Decl(bar.jsx, 0, 6))
|
|
|
|
const a = <Foo />
|
|
>a : Symbol(a, Decl(bar.jsx, 1, 5))
|
|
>Foo : Symbol(Foo, Decl(bar.jsx, 0, 6))
|
|
|