TypeScript/tests/baselines/reference/instantiatedBaseTypeConstraints.errors.txt
2014-07-12 17:30:19 -07:00

14 lines
418 B
Plaintext

==== tests/cases/compiler/instantiatedBaseTypeConstraints.ts (1 errors) ====
interface Foo<T extends Foo<T, C>, C> {
~~~~~~~~~~~~~~~~~~~
!!! Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
foo(bar: C): void;
}
class Bar implements Foo<Bar, string> {
foo(bar: string): void {
}
}