43 lines
1.6 KiB
Text
43 lines
1.6 KiB
Text
=== tests/cases/compiler/extendAndImplementTheSameBaseType.ts ===
|
|
class C {
|
|
>C : Symbol(C, Decl(extendAndImplementTheSameBaseType.ts, 0, 0))
|
|
|
|
foo: number
|
|
>foo : Symbol(foo, Decl(extendAndImplementTheSameBaseType.ts, 0, 9))
|
|
|
|
bar() {}
|
|
>bar : Symbol(bar, Decl(extendAndImplementTheSameBaseType.ts, 1, 15))
|
|
}
|
|
class D extends C implements C {
|
|
>D : Symbol(D, Decl(extendAndImplementTheSameBaseType.ts, 3, 1))
|
|
>C : Symbol(C, Decl(extendAndImplementTheSameBaseType.ts, 0, 0))
|
|
>C : Symbol(C, Decl(extendAndImplementTheSameBaseType.ts, 0, 0))
|
|
|
|
baz() { }
|
|
>baz : Symbol(baz, Decl(extendAndImplementTheSameBaseType.ts, 4, 32))
|
|
}
|
|
|
|
var c: C;
|
|
>c : Symbol(c, Decl(extendAndImplementTheSameBaseType.ts, 8, 3))
|
|
>C : Symbol(C, Decl(extendAndImplementTheSameBaseType.ts, 0, 0))
|
|
|
|
var d: D = new D();
|
|
>d : Symbol(d, Decl(extendAndImplementTheSameBaseType.ts, 9, 3))
|
|
>D : Symbol(D, Decl(extendAndImplementTheSameBaseType.ts, 3, 1))
|
|
>D : Symbol(D, Decl(extendAndImplementTheSameBaseType.ts, 3, 1))
|
|
|
|
d.bar();
|
|
>d.bar : Symbol(C.bar, Decl(extendAndImplementTheSameBaseType.ts, 1, 15))
|
|
>d : Symbol(d, Decl(extendAndImplementTheSameBaseType.ts, 9, 3))
|
|
>bar : Symbol(C.bar, Decl(extendAndImplementTheSameBaseType.ts, 1, 15))
|
|
|
|
d.baz();
|
|
>d.baz : Symbol(D.baz, Decl(extendAndImplementTheSameBaseType.ts, 4, 32))
|
|
>d : Symbol(d, Decl(extendAndImplementTheSameBaseType.ts, 9, 3))
|
|
>baz : Symbol(D.baz, Decl(extendAndImplementTheSameBaseType.ts, 4, 32))
|
|
|
|
d.foo;
|
|
>d.foo : Symbol(C.foo, Decl(extendAndImplementTheSameBaseType.ts, 0, 9))
|
|
>d : Symbol(d, Decl(extendAndImplementTheSameBaseType.ts, 9, 3))
|
|
>foo : Symbol(C.foo, Decl(extendAndImplementTheSameBaseType.ts, 0, 9))
|
|
|