17 lines
No EOL
616 B
Text
17 lines
No EOL
616 B
Text
tests/cases/compiler/instantiatedBaseTypeConstraints.ts(1,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
|
|
|
|
|
|
==== tests/cases/compiler/instantiatedBaseTypeConstraints.ts (1 errors) ====
|
|
interface Foo<T extends Foo<T, C>, C> {
|
|
~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2313: 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 {
|
|
}
|
|
}
|
|
|
|
|
|
|