mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
41 lines
2.1 KiB
Plaintext
41 lines
2.1 KiB
Plaintext
//// [tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithGenericCallSignatures4.ts] ////
|
|
|
|
=== assignmentCompatWithGenericCallSignatures4.ts ===
|
|
// some complex cases of assignment compat of generic signatures.
|
|
|
|
interface I2<T> {
|
|
>I2 : Symbol(I2, Decl(assignmentCompatWithGenericCallSignatures4.ts, 0, 0))
|
|
>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures4.ts, 2, 13))
|
|
|
|
p: T
|
|
>p : Symbol(I2.p, Decl(assignmentCompatWithGenericCallSignatures4.ts, 2, 17))
|
|
>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures4.ts, 2, 13))
|
|
}
|
|
|
|
declare var x: <T extends I2<T>>(z: T) => void;
|
|
>x : Symbol(x, Decl(assignmentCompatWithGenericCallSignatures4.ts, 6, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures4.ts, 6, 16))
|
|
>I2 : Symbol(I2, Decl(assignmentCompatWithGenericCallSignatures4.ts, 0, 0))
|
|
>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures4.ts, 6, 16))
|
|
>z : Symbol(z, Decl(assignmentCompatWithGenericCallSignatures4.ts, 6, 33))
|
|
>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures4.ts, 6, 16))
|
|
|
|
declare var y: <T extends I2<I2<T>>>(z: T) => void;
|
|
>y : Symbol(y, Decl(assignmentCompatWithGenericCallSignatures4.ts, 7, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures4.ts, 7, 16))
|
|
>I2 : Symbol(I2, Decl(assignmentCompatWithGenericCallSignatures4.ts, 0, 0))
|
|
>I2 : Symbol(I2, Decl(assignmentCompatWithGenericCallSignatures4.ts, 0, 0))
|
|
>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures4.ts, 7, 16))
|
|
>z : Symbol(z, Decl(assignmentCompatWithGenericCallSignatures4.ts, 7, 37))
|
|
>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures4.ts, 7, 16))
|
|
|
|
// These both do not make sense as we would eventually be comparing I2<T> to I2<I2<T>>, and they are self referencing anyway
|
|
x = y
|
|
>x : Symbol(x, Decl(assignmentCompatWithGenericCallSignatures4.ts, 6, 11))
|
|
>y : Symbol(y, Decl(assignmentCompatWithGenericCallSignatures4.ts, 7, 11))
|
|
|
|
y = x
|
|
>y : Symbol(y, Decl(assignmentCompatWithGenericCallSignatures4.ts, 7, 11))
|
|
>x : Symbol(x, Decl(assignmentCompatWithGenericCallSignatures4.ts, 6, 11))
|
|
|