17 lines
321 B
Plaintext
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
|
||
|
}
|