30 lines
No EOL
901 B
Text
30 lines
No EOL
901 B
Text
==== tests/cases/conformance/interfaces/interfaceDeclarations/interfaceThatInheritsFromItself.ts (8 errors) ====
|
|
interface Foo extends Foo { // error
|
|
~~~
|
|
!!! Type 'Foo' recursively references itself as a base type.
|
|
}
|
|
|
|
interface Foo2<T> extends Foo2<T> { // error
|
|
~~~~
|
|
!!! Type 'Foo2<T>' recursively references itself as a base type.
|
|
}
|
|
|
|
interface Foo3<T> extends Foo3<string> { // error
|
|
~~~~
|
|
!!! Type 'Foo3<T>' recursively references itself as a base type.
|
|
}
|
|
|
|
interface Bar implements Bar { // error
|
|
~~~~~~~~~~
|
|
!!! '{' expected.
|
|
~~~
|
|
!!! ';' expected.
|
|
~
|
|
!!! ';' expected.
|
|
~~~~~~~~~~
|
|
!!! Cannot find name 'implements'.
|
|
~~~
|
|
!!! Cannot find name 'Bar'.
|
|
}
|
|
|
|
|