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

17 lines
321 B
Plaintext

=== tests/cases/conformance/expressions/binaryOperators/instanceofOperator/instanceofOperatorWithLHSIsTypeParameter.ts ===
function foo<T>(t: T) {
>foo : <T>(t: T) => void
>T : T
>t : T
>T : T
var x: any;
>x : any
var r = t instanceof x;
>r : boolean
>t instanceof x : boolean
>t : T
>x : any
}