2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/nonGenericClassExtendingGenericClassWithAny.ts ===
|
|
|
|
class Foo<T> {
|
2015-04-13 23:01:57 +02:00
|
|
|
>Foo : Foo<T>, Symbol(Foo, Decl(nonGenericClassExtendingGenericClassWithAny.ts, 0, 0))
|
|
|
|
>T : T, Symbol(T, Decl(nonGenericClassExtendingGenericClassWithAny.ts, 0, 10))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
t: T;
|
2015-04-13 23:01:57 +02:00
|
|
|
>t : T, Symbol(t, Decl(nonGenericClassExtendingGenericClassWithAny.ts, 0, 14))
|
|
|
|
>T : T, Symbol(T, Decl(nonGenericClassExtendingGenericClassWithAny.ts, 0, 10))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
class Bar extends Foo<any> { } // Valid
|
2015-04-13 23:01:57 +02:00
|
|
|
>Bar : Bar, Symbol(Bar, Decl(nonGenericClassExtendingGenericClassWithAny.ts, 2, 1))
|
|
|
|
>Foo : Foo<T>, Symbol(Foo, Decl(nonGenericClassExtendingGenericClassWithAny.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|