51 lines
788 B
Plaintext
51 lines
788 B
Plaintext
=== tests/cases/compiler/a.ts ===
|
|
export default { a: 1 };
|
|
>{ a: 1 } : { a: number; }
|
|
>a : number
|
|
>1 : 1
|
|
|
|
=== tests/cases/compiler/b1.ts ===
|
|
import a from "./a";
|
|
>a : { a: number; }
|
|
|
|
const b1 = {} as unknown;
|
|
>b1 : unknown
|
|
>{} as unknown : unknown
|
|
>{} : {}
|
|
|
|
({
|
|
>({ // @ts-ignore ...b1, a}) : error
|
|
>{ // @ts-ignore ...b1, a} : error
|
|
|
|
// @ts-ignore
|
|
...b1,
|
|
>b1 : unknown
|
|
|
|
a
|
|
>a : { a: number; }
|
|
|
|
})
|
|
|
|
=== tests/cases/compiler/b2.ts ===
|
|
import a from "./a";
|
|
>a : { a: number; }
|
|
|
|
const b2 = {} as never;
|
|
>b2 : never
|
|
>{} as never : never
|
|
>{} : {}
|
|
|
|
({
|
|
>({ // @ts-ignore ...b2, a}) : error
|
|
>{ // @ts-ignore ...b2, a} : error
|
|
|
|
// @ts-ignore
|
|
...b2,
|
|
>b2 : never
|
|
|
|
a
|
|
>a : { a: number; }
|
|
|
|
})
|
|
|