TypeScript/tests/cases/compiler/assignmentCompatibilityForConstrainedTypeParameters.ts

7 lines
131 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
function foo<T extends { bar: string }>() {
function bar<S extends T>() {
var x: S;
var y: T;
y = x;
}
}