TypeScript/tests/baselines/reference/recursiveBaseCheck4.errors.txt
2014-09-12 13:35:07 -07:00

11 lines
536 B
Plaintext

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<{}>'.
==== 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.
(new M).blah;
~~~~
!!! error TS2339: Property 'blah' does not exist on type 'M<{}>'.