TypeScript/tests/baselines/reference/comparisonOperatorWithIdenticalTypeParameter.types

56 lines
2.8 KiB
Plaintext
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) {
2015-04-13 23:01:57 +02:00
>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;
2015-04-13 23:01:57 +02:00
>r1 : boolean, Symbol(r1, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 1, 7))
2014-08-15 23:33:16 +02:00
>t < t : boolean
2015-04-13 23:01:57 +02:00
>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;
2015-04-13 23:01:57 +02:00
>r2 : boolean, Symbol(r2, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 2, 7))
2014-08-15 23:33:16 +02:00
>t > t : boolean
2015-04-13 23:01:57 +02:00
>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;
2015-04-13 23:01:57 +02:00
>r3 : boolean, Symbol(r3, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 3, 7))
2014-08-15 23:33:16 +02:00
>t <= t : boolean
2015-04-13 23:01:57 +02:00
>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;
2015-04-13 23:01:57 +02:00
>r4 : boolean, Symbol(r4, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 4, 7))
2014-08-15 23:33:16 +02:00
>t >= t : boolean
2015-04-13 23:01:57 +02:00
>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;
2015-04-13 23:01:57 +02:00
>r5 : boolean, Symbol(r5, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 5, 7))
2014-08-15 23:33:16 +02:00
>t == t : boolean
2015-04-13 23:01:57 +02:00
>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;
2015-04-13 23:01:57 +02:00
>r6 : boolean, Symbol(r6, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 6, 7))
2014-08-15 23:33:16 +02:00
>t != t : boolean
2015-04-13 23:01:57 +02:00
>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;
2015-04-13 23:01:57 +02:00
>r7 : boolean, Symbol(r7, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 7, 7))
2014-08-15 23:33:16 +02:00
>t === t : boolean
2015-04-13 23:01:57 +02:00
>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;
2015-04-13 23:01:57 +02:00
>r8 : boolean, Symbol(r8, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 8, 7))
2014-08-15 23:33:16 +02:00
>t !== t : boolean
2015-04-13 23:01:57 +02:00
>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
}