10 lines
285 B
Plaintext
10 lines
285 B
Plaintext
==== 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})
|
|
~~~~~~~~~~~
|
|
!!! Supplied parameters do not match any signature of call target.
|
|
|