1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
=== tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalTypeParameter.ts ===
function foo<T>(t: T) {
>foo : Symbol(foo, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 0))
>T : Symbol(T, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 13))
>t : Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16))
>T : Symbol(T, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 13))
var r1 = t < t;
>r1 : Symbol(r1, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 1, 7))
>t : Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16))
>t : Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16))
var r2 = t > t;
>r2 : Symbol(r2, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 2, 7))
>t : Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16))
>t : Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16))
var r3 = t <= t;
>r3 : Symbol(r3, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 3, 7))
>t : Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16))
>t : Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16))
var r4 = t >= t;
>r4 : Symbol(r4, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 4, 7))
>t : Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16))
>t : Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16))
var r5 = t == t;
>r5 : Symbol(r5, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 5, 7))
>t : Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16))
>t : Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16))
var r6 = t != t;
>r6 : Symbol(r6, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 6, 7))
>t : Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16))
>t : Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16))
var r7 = t === t;
>r7 : Symbol(r7, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 7, 7))
>t : Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16))
>t : Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16))
var r8 = t !== t;
>r8 : Symbol(r8, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 8, 7))
>t : Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16))
>t : Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16))
}
|