TypeScript/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.symbols
2015-04-15 16:44:20 -07:00

15 lines
625 B
Plaintext

=== 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))