7 lines
No EOL
268 B
Text
7 lines
No EOL
268 B
Text
==== tests/cases/compiler/recursiveBaseCheck4.ts (2 errors) ====
|
|
class M<T> extends M<string> { }
|
|
~
|
|
!!! Type 'M<T>' recursively references itself as a base type.
|
|
(new M).blah;
|
|
~~~~
|
|
!!! Property 'blah' does not exist on type 'M<{}>'. |