16 lines
321 B
Text
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
|
|
}
|