|
| 1 | +=== tests/cases/conformance/externalModules/typeOnly/types.ts === |
| 2 | +export interface I {} |
| 3 | +>I : Symbol(I, Decl(types.ts, 0, 0)) |
| 4 | + |
| 5 | +export class C {} |
| 6 | +>C : Symbol(C, Decl(types.ts, 0, 21)) |
| 7 | + |
| 8 | +=== tests/cases/conformance/externalModules/typeOnly/ns.ts === |
| 9 | +import type * as types from './types'; |
| 10 | +>types : Symbol(types, Decl(ns.ts, 0, 11)) |
| 11 | + |
| 12 | +export { types }; |
| 13 | +>types : Symbol(types, Decl(ns.ts, 1, 8)) |
| 14 | + |
| 15 | +=== tests/cases/conformance/externalModules/typeOnly/index.ts === |
| 16 | +import { types } from './ns'; |
| 17 | +>types : Symbol(types, Decl(index.ts, 0, 8)) |
| 18 | + |
| 19 | +import type { C, I } from './types'; |
| 20 | +>C : Symbol(C, Decl(index.ts, 1, 13)) |
| 21 | +>I : Symbol(I, Decl(index.ts, 1, 16)) |
| 22 | + |
| 23 | +interface Q extends C {} |
| 24 | +>Q : Symbol(Q, Decl(index.ts, 1, 36)) |
| 25 | +>C : Symbol(C, Decl(index.ts, 1, 13)) |
| 26 | + |
| 27 | +interface R extends I {} |
| 28 | +>R : Symbol(R, Decl(index.ts, 3, 24)) |
| 29 | +>I : Symbol(I, Decl(index.ts, 1, 16)) |
| 30 | + |
| 31 | +interface S extends types.C {} |
| 32 | +>S : Symbol(S, Decl(index.ts, 4, 24)) |
| 33 | +>types.C : Symbol(types.C, Decl(types.ts, 0, 21)) |
| 34 | +>types : Symbol(types, Decl(index.ts, 0, 8)) |
| 35 | +>C : Symbol(types.C, Decl(types.ts, 0, 21)) |
| 36 | + |
| 37 | +interface T extends types.I {} |
| 38 | +>T : Symbol(T, Decl(index.ts, 5, 30)) |
| 39 | +>types.I : Symbol(types.I, Decl(types.ts, 0, 0)) |
| 40 | +>types : Symbol(types, Decl(index.ts, 0, 8)) |
| 41 | +>I : Symbol(types.I, Decl(types.ts, 0, 0)) |
| 42 | + |
| 43 | +class U extends C {} // Error |
| 44 | +>U : Symbol(U, Decl(index.ts, 6, 30)) |
| 45 | +>C : Symbol(C, Decl(index.ts, 1, 13)) |
| 46 | + |
| 47 | +class V extends types.C {} // Error |
| 48 | +>V : Symbol(V, Decl(index.ts, 8, 20)) |
| 49 | +>types.C : Symbol(types.C, Decl(types.ts, 0, 21)) |
| 50 | +>types : Symbol(types, Decl(index.ts, 0, 8)) |
| 51 | +>C : Symbol(types.C, Decl(types.ts, 0, 21)) |
| 52 | + |
0 commit comments