TypeScript/tests/baselines/reference/genericInstanceOf.types
2014-08-15 14:37:48 -07:00

32 lines
416 B
Plaintext

=== tests/cases/compiler/genericInstanceOf.ts ===
interface F {
>F : F
(): number;
}
class C<T> {
>C : C<T>
>T : T
constructor(public a: T, public b: F) {}
>a : T
>T : T
>b : F
>F : F
foo() {
>foo : () => void
if (this.a instanceof this.b) {
>this.a instanceof this.b : boolean
>this.a : T
>this : C<T>
>a : T
>this.b : F
>this : C<T>
>b : F
}
}
}