tests/cases/compiler/genericConstraintSatisfaction1.ts(6,6): error TS2322: Type 'number' is not assignable to type 'string'.
==== tests/cases/compiler/genericConstraintSatisfaction1.ts (1 errors) ====
interface I<S> {
f: <T extends S>(x: T) => void
}
var x: I<{s: string}>
x.f({s: 1})
~
!!! error TS2322: Type 'number' is not assignable to type 'string'.
!!! related TS6500 tests/cases/compiler/genericConstraintSatisfaction1.ts:5:11: The expected type comes from property 's' which is declared here on type '{ s: string; }'
|