TypeScript/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.symbols

15 lines
625 B
Plaintext
Raw Normal View History

=== tests/cases/compiler/nonGenericClassExtendingGenericClassWithAny.ts ===
class Foo<T> {
>Foo : Symbol(Foo, Decl(nonGenericClassExtendingGenericClassWithAny.ts, 0, 0))
>T : Symbol(T, Decl(nonGenericClassExtendingGenericClassWithAny.ts, 0, 10))
t: T;
>t : Symbol(t, Decl(nonGenericClassExtendingGenericClassWithAny.ts, 0, 14))
>T : Symbol(T, Decl(nonGenericClassExtendingGenericClassWithAny.ts, 0, 10))
}
class Bar extends Foo<any> { } // Valid
>Bar : Symbol(Bar, Decl(nonGenericClassExtendingGenericClassWithAny.ts, 2, 1))
>Foo : Symbol(Foo, Decl(nonGenericClassExtendingGenericClassWithAny.ts, 0, 0))