|
| 1 | +//// [tests/cases/compiler/isolatedDeclarationErrorTypes1.ts] //// |
| 2 | + |
| 3 | +=== isolatedDeclarationErrorTypes1.ts === |
| 4 | +// https://github.com/microsoft/TypeScript/issues/60192 |
| 5 | + |
| 6 | +import { Unresolved } from "foo"; |
| 7 | +>Unresolved : Symbol(Unresolved, Decl(isolatedDeclarationErrorTypes1.ts, 2, 8)) |
| 8 | + |
| 9 | +export const foo1 = (type?: Unresolved): void => {}; |
| 10 | +>foo1 : Symbol(foo1, Decl(isolatedDeclarationErrorTypes1.ts, 4, 12)) |
| 11 | +>type : Symbol(type, Decl(isolatedDeclarationErrorTypes1.ts, 4, 21)) |
| 12 | +>Unresolved : Symbol(Unresolved, Decl(isolatedDeclarationErrorTypes1.ts, 2, 8)) |
| 13 | + |
| 14 | +export const foo2 = (type?: Unresolved | undefined): void => {}; |
| 15 | +>foo2 : Symbol(foo2, Decl(isolatedDeclarationErrorTypes1.ts, 5, 12)) |
| 16 | +>type : Symbol(type, Decl(isolatedDeclarationErrorTypes1.ts, 5, 21)) |
| 17 | +>Unresolved : Symbol(Unresolved, Decl(isolatedDeclarationErrorTypes1.ts, 2, 8)) |
| 18 | + |
| 19 | +export const foo3 = (type: Unresolved): void => {}; |
| 20 | +>foo3 : Symbol(foo3, Decl(isolatedDeclarationErrorTypes1.ts, 6, 12)) |
| 21 | +>type : Symbol(type, Decl(isolatedDeclarationErrorTypes1.ts, 6, 21)) |
| 22 | +>Unresolved : Symbol(Unresolved, Decl(isolatedDeclarationErrorTypes1.ts, 2, 8)) |
| 23 | + |
0 commit comments