=== tests/cases/compiler/assignmentCompatibilityForConstrainedTypeParameters.ts === function foo() { >foo : () => void >T : T >bar : string function bar() { >bar : () => void >S : S >T : T var x: S; >x : S >S : S var y: T; >y : T >T : T y = x; >y = x : S >y : T >x : S } }