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

11 lines
536 B
Plaintext
Raw Normal View History

tests/cases/compiler/recursiveBaseCheck4.ts(1,7): error TS2310: Type 'M<T>' recursively references itself as a base type.
tests/cases/compiler/recursiveBaseCheck4.ts(2,9): error TS2339: Property 'blah' does not exist on type 'M<{}>'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/recursiveBaseCheck4.ts (2 errors) ====
class M<T> extends M<string> { }
~
!!! error TS2310: Type 'M<T>' recursively references itself as a base type.
2014-07-13 01:04:16 +02:00
(new M).blah;
~~~~
!!! error TS2339: Property 'blah' does not exist on type 'M<{}>'.