TypeScript/tests/cases/compiler/assignmentCompatibilityForConstrainedTypeParameters.ts
2014-07-12 17:30:19 -07:00

7 lines
131 B
TypeScript

function foo<T extends { bar: string }>() {
function bar<S extends T>() {
var x: S;
var y: T;
y = x;
}
}