2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/inOperatorWithGeneric.ts ===
|
|
|
|
class C<T> {
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C<T>, Symbol(C, Decl(inOperatorWithGeneric.ts, 0, 0))
|
|
|
|
>T : T, Symbol(T, Decl(inOperatorWithGeneric.ts, 0, 8))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
foo(x:T) {
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : (x: T) => void, Symbol(foo, Decl(inOperatorWithGeneric.ts, 0, 12))
|
|
|
|
>x : T, Symbol(x, Decl(inOperatorWithGeneric.ts, 1, 8))
|
|
|
|
>T : T, Symbol(T, Decl(inOperatorWithGeneric.ts, 0, 8))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
for (var p in x) {
|
2015-04-13 23:01:57 +02:00
|
|
|
>p : any, Symbol(p, Decl(inOperatorWithGeneric.ts, 2, 16))
|
|
|
|
>x : T, Symbol(x, Decl(inOperatorWithGeneric.ts, 1, 8))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|