mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
29 lines
1.2 KiB
Plaintext
29 lines
1.2 KiB
Plaintext
//// [tests/cases/conformance/classes/classDeclarations/classAndInterfaceWithSameName.ts] ////
|
|
|
|
=== classAndInterfaceWithSameName.ts ===
|
|
class C { foo: string; }
|
|
>C : Symbol(C, Decl(classAndInterfaceWithSameName.ts, 0, 0), Decl(classAndInterfaceWithSameName.ts, 0, 24))
|
|
>foo : Symbol(C.foo, Decl(classAndInterfaceWithSameName.ts, 0, 9), Decl(classAndInterfaceWithSameName.ts, 1, 13))
|
|
|
|
interface C { foo: string; }
|
|
>C : Symbol(C, Decl(classAndInterfaceWithSameName.ts, 0, 0), Decl(classAndInterfaceWithSameName.ts, 0, 24))
|
|
>foo : Symbol(C.foo, Decl(classAndInterfaceWithSameName.ts, 0, 9), Decl(classAndInterfaceWithSameName.ts, 1, 13))
|
|
|
|
namespace M {
|
|
>M : Symbol(M, Decl(classAndInterfaceWithSameName.ts, 1, 28))
|
|
|
|
class D {
|
|
>D : Symbol(D, Decl(classAndInterfaceWithSameName.ts, 3, 13), Decl(classAndInterfaceWithSameName.ts, 6, 5))
|
|
|
|
bar: string;
|
|
>bar : Symbol(D.bar, Decl(classAndInterfaceWithSameName.ts, 4, 13), Decl(classAndInterfaceWithSameName.ts, 8, 17))
|
|
}
|
|
|
|
interface D {
|
|
>D : Symbol(D, Decl(classAndInterfaceWithSameName.ts, 3, 13), Decl(classAndInterfaceWithSameName.ts, 6, 5))
|
|
|
|
bar: string;
|
|
>bar : Symbol(D.bar, Decl(classAndInterfaceWithSameName.ts, 4, 13), Decl(classAndInterfaceWithSameName.ts, 8, 17))
|
|
}
|
|
}
|