TypeScript/tests/baselines/reference/interfaceThatInheritsFromItself.errors.txt

33 lines
1,010 B
Text
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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'.
}