mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
68 lines
1.8 KiB
Plaintext
68 lines
1.8 KiB
Plaintext
//// [tests/cases/conformance/directives/multiline.tsx] ////
|
|
|
|
=== b.tsx ===
|
|
/// <reference path="react.d.ts" />
|
|
import * as React from "react";
|
|
>React : Symbol(React, Decl(b.tsx, 1, 6))
|
|
|
|
export function MyComponent(props: { foo: string }) {
|
|
>MyComponent : Symbol(MyComponent, Decl(b.tsx, 1, 31))
|
|
>props : Symbol(props, Decl(b.tsx, 3, 28))
|
|
>foo : Symbol(foo, Decl(b.tsx, 3, 36))
|
|
|
|
return <div />;
|
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react.d.ts, 2402, 45))
|
|
}
|
|
|
|
let x = (
|
|
>x : Symbol(x, Decl(b.tsx, 7, 3))
|
|
|
|
<div>
|
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react.d.ts, 2402, 45))
|
|
|
|
{/*
|
|
@ts-ignore */}
|
|
<MyComponent foo={100} />
|
|
>MyComponent : Symbol(MyComponent, Decl(b.tsx, 1, 31))
|
|
>foo : Symbol(foo, Decl(b.tsx, 11, 16))
|
|
|
|
{/*@ts-ignore*/}
|
|
<MyComponent foo={100} />
|
|
>MyComponent : Symbol(MyComponent, Decl(b.tsx, 1, 31))
|
|
>foo : Symbol(foo, Decl(b.tsx, 14, 16))
|
|
|
|
{/*
|
|
@ts-expect-error */}
|
|
<MyComponent foo={100} />
|
|
>MyComponent : Symbol(MyComponent, Decl(b.tsx, 1, 31))
|
|
>foo : Symbol(foo, Decl(b.tsx, 18, 16))
|
|
|
|
{/*
|
|
// @ts-expect-error */}
|
|
<MyComponent foo={100} />
|
|
>MyComponent : Symbol(MyComponent, Decl(b.tsx, 1, 31))
|
|
>foo : Symbol(foo, Decl(b.tsx, 22, 16))
|
|
|
|
{/*
|
|
* @ts-expect-error */}
|
|
<MyComponent foo={100} />
|
|
>MyComponent : Symbol(MyComponent, Decl(b.tsx, 1, 31))
|
|
>foo : Symbol(foo, Decl(b.tsx, 26, 16))
|
|
|
|
{/*@ts-expect-error*/}
|
|
<MyComponent foo={100} />
|
|
>MyComponent : Symbol(MyComponent, Decl(b.tsx, 1, 31))
|
|
>foo : Symbol(foo, Decl(b.tsx, 29, 16))
|
|
|
|
{/*
|
|
@ts-expect-error */}
|
|
<MyComponent foo={"hooray"} />
|
|
>MyComponent : Symbol(MyComponent, Decl(b.tsx, 1, 31))
|
|
>foo : Symbol(foo, Decl(b.tsx, 33, 16))
|
|
|
|
</div>
|
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react.d.ts, 2402, 45))
|
|
|
|
);
|
|
|