TypeScript/tests/baselines/reference/comparisonOperatorWithIdenticalTypeParameter.types

56 lines
2.7 KiB
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalTypeParameter.ts ===
function foo<T>(t: T) {
>foo : <T>(t: T) => void, Symbol(foo,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,0))
>T : T, Symbol(T,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,13))
>t : T, Symbol(t,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,16))
>T : T, Symbol(T,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,13))
2014-08-15 23:33:16 +02:00
var r1 = t < t;
>r1 : boolean, Symbol(r1,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,1,7))
2014-08-15 23:33:16 +02:00
>t < t : boolean
>t : T, Symbol(t,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,16))
>t : T, Symbol(t,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,16))
2014-08-15 23:33:16 +02:00
var r2 = t > t;
>r2 : boolean, Symbol(r2,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,2,7))
2014-08-15 23:33:16 +02:00
>t > t : boolean
>t : T, Symbol(t,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,16))
>t : T, Symbol(t,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,16))
2014-08-15 23:33:16 +02:00
var r3 = t <= t;
>r3 : boolean, Symbol(r3,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,3,7))
2014-08-15 23:33:16 +02:00
>t <= t : boolean
>t : T, Symbol(t,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,16))
>t : T, Symbol(t,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,16))
2014-08-15 23:33:16 +02:00
var r4 = t >= t;
>r4 : boolean, Symbol(r4,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,4,7))
2014-08-15 23:33:16 +02:00
>t >= t : boolean
>t : T, Symbol(t,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,16))
>t : T, Symbol(t,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,16))
2014-08-15 23:33:16 +02:00
var r5 = t == t;
>r5 : boolean, Symbol(r5,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,5,7))
2014-08-15 23:33:16 +02:00
>t == t : boolean
>t : T, Symbol(t,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,16))
>t : T, Symbol(t,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,16))
2014-08-15 23:33:16 +02:00
var r6 = t != t;
>r6 : boolean, Symbol(r6,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,6,7))
2014-08-15 23:33:16 +02:00
>t != t : boolean
>t : T, Symbol(t,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,16))
>t : T, Symbol(t,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,16))
2014-08-15 23:33:16 +02:00
var r7 = t === t;
>r7 : boolean, Symbol(r7,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,7,7))
2014-08-15 23:33:16 +02:00
>t === t : boolean
>t : T, Symbol(t,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,16))
>t : T, Symbol(t,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,16))
2014-08-15 23:33:16 +02:00
var r8 = t !== t;
>r8 : boolean, Symbol(r8,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,8,7))
2014-08-15 23:33:16 +02:00
>t !== t : boolean
>t : T, Symbol(t,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,16))
>t : T, Symbol(t,Decl(comparisonOperatorWithIdenticalTypeParameter.ts,0,16))
2014-08-15 23:33:16 +02:00
}