1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
=== tests/cases/compiler/classExtendsInterface.ts ===
interface Comparable {}
>Comparable : Symbol(Comparable, Decl(classExtendsInterface.ts, 0, 0))
class A extends Comparable {}
>A : Symbol(A, Decl(classExtendsInterface.ts, 0, 23))
>Comparable : Symbol(Comparable, Decl(classExtendsInterface.ts, 0, 0))
class B implements Comparable {}
>B : Symbol(B, Decl(classExtendsInterface.ts, 1, 29))
>Comparable : Symbol(Comparable, Decl(classExtendsInterface.ts, 0, 0))
interface Comparable2<T> {}
>Comparable2 : Symbol(Comparable2, Decl(classExtendsInterface.ts, 2, 32))
>T : Symbol(T, Decl(classExtendsInterface.ts, 4, 22))
class A2<T> extends Comparable2<T> {}
>A2 : Symbol(A2, Decl(classExtendsInterface.ts, 4, 27))
>T : Symbol(T, Decl(classExtendsInterface.ts, 5, 9))
>Comparable2 : Symbol(Comparable2, Decl(classExtendsInterface.ts, 2, 32))
>T : Symbol(T, Decl(classExtendsInterface.ts, 5, 9))
class B2<T> implements Comparable2<T> {}
>B2 : Symbol(B2, Decl(classExtendsInterface.ts, 5, 37))
>T : Symbol(T, Decl(classExtendsInterface.ts, 6, 9))
>Comparable2 : Symbol(Comparable2, Decl(classExtendsInterface.ts, 2, 32))
>T : Symbol(T, Decl(classExtendsInterface.ts, 6, 9))
|