108 lines
5.5 KiB
Text
108 lines
5.5 KiB
Text
=== tests/cases/conformance/expressions/binaryOperators/logicalOrOperator/logicalOrOperatorWithTypeParameters.ts ===
|
|
function fn1<T, U>(t: T, u: U) {
|
|
>fn1 : Symbol(fn1, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 0))
|
|
>T : Symbol(T, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 13))
|
|
>U : Symbol(U, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 15))
|
|
>t : Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 19))
|
|
>T : Symbol(T, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 13))
|
|
>u : Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 24))
|
|
>U : Symbol(U, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 15))
|
|
|
|
var r1 = t || t;
|
|
>r1 : Symbol(r1, Decl(logicalOrOperatorWithTypeParameters.ts, 1, 7))
|
|
>t : Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 19))
|
|
>t : Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 19))
|
|
|
|
var r2: T = t || t;
|
|
>r2 : Symbol(r2, Decl(logicalOrOperatorWithTypeParameters.ts, 2, 7))
|
|
>T : Symbol(T, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 13))
|
|
>t : Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 19))
|
|
>t : Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 19))
|
|
|
|
var r3 = t || u;
|
|
>r3 : Symbol(r3, Decl(logicalOrOperatorWithTypeParameters.ts, 3, 7))
|
|
>t : Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 19))
|
|
>u : Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 24))
|
|
|
|
var r4: {} = t || u;
|
|
>r4 : Symbol(r4, Decl(logicalOrOperatorWithTypeParameters.ts, 4, 7))
|
|
>t : Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 19))
|
|
>u : Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 24))
|
|
}
|
|
|
|
function fn2<T, U/* extends T*/, V/* extends T*/>(t: T, u: U, v: V) {
|
|
>fn2 : Symbol(fn2, Decl(logicalOrOperatorWithTypeParameters.ts, 5, 1))
|
|
>T : Symbol(T, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 13))
|
|
>U : Symbol(U, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 15))
|
|
>V : Symbol(V, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 32))
|
|
>t : Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 50))
|
|
>T : Symbol(T, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 13))
|
|
>u : Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 55))
|
|
>U : Symbol(U, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 15))
|
|
>v : Symbol(v, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 61))
|
|
>V : Symbol(V, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 32))
|
|
|
|
var r1 = t || u;
|
|
>r1 : Symbol(r1, Decl(logicalOrOperatorWithTypeParameters.ts, 8, 7))
|
|
>t : Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 50))
|
|
>u : Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 55))
|
|
|
|
//var r2: T = t || u;
|
|
var r3 = u || u;
|
|
>r3 : Symbol(r3, Decl(logicalOrOperatorWithTypeParameters.ts, 10, 7))
|
|
>u : Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 55))
|
|
>u : Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 55))
|
|
|
|
var r4: U = u || u;
|
|
>r4 : Symbol(r4, Decl(logicalOrOperatorWithTypeParameters.ts, 11, 7))
|
|
>U : Symbol(U, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 15))
|
|
>u : Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 55))
|
|
>u : Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 55))
|
|
|
|
var r5 = u || v;
|
|
>r5 : Symbol(r5, Decl(logicalOrOperatorWithTypeParameters.ts, 12, 7))
|
|
>u : Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 55))
|
|
>v : Symbol(v, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 61))
|
|
|
|
var r6: {} = u || v;
|
|
>r6 : Symbol(r6, Decl(logicalOrOperatorWithTypeParameters.ts, 13, 7))
|
|
>u : Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 55))
|
|
>v : Symbol(v, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 61))
|
|
|
|
//var r7: T = u || v;
|
|
}
|
|
|
|
function fn3<T extends { a: string; b: string }, U extends { a: string; b: number }>(t: T, u: U) {
|
|
>fn3 : Symbol(fn3, Decl(logicalOrOperatorWithTypeParameters.ts, 15, 1))
|
|
>T : Symbol(T, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 13))
|
|
>a : Symbol(a, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 24))
|
|
>b : Symbol(b, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 35))
|
|
>U : Symbol(U, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 48))
|
|
>a : Symbol(a, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 60))
|
|
>b : Symbol(b, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 71))
|
|
>t : Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 85))
|
|
>T : Symbol(T, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 13))
|
|
>u : Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 90))
|
|
>U : Symbol(U, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 48))
|
|
|
|
var r1 = t || u;
|
|
>r1 : Symbol(r1, Decl(logicalOrOperatorWithTypeParameters.ts, 18, 7))
|
|
>t : Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 85))
|
|
>u : Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 90))
|
|
|
|
var r2: {} = t || u;
|
|
>r2 : Symbol(r2, Decl(logicalOrOperatorWithTypeParameters.ts, 19, 7))
|
|
>t : Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 85))
|
|
>u : Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 90))
|
|
|
|
var r3 = t || { a: '' };
|
|
>r3 : Symbol(r3, Decl(logicalOrOperatorWithTypeParameters.ts, 20, 7))
|
|
>t : Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 85))
|
|
>a : Symbol(a, Decl(logicalOrOperatorWithTypeParameters.ts, 20, 19))
|
|
|
|
var r4: { a: string } = t || u;
|
|
>r4 : Symbol(r4, Decl(logicalOrOperatorWithTypeParameters.ts, 21, 7))
|
|
>a : Symbol(a, Decl(logicalOrOperatorWithTypeParameters.ts, 21, 13))
|
|
>t : Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 85))
|
|
>u : Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 90))
|
|
}
|