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

16 lines
321 B
Text

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