15 lines
No EOL
490 B
Text
15 lines
No EOL
490 B
Text
==== tests/cases/compiler/recursiveBaseConstructorCreation3.ts (2 errors) ====
|
|
declare class base<T> {
|
|
}
|
|
declare class abc<T> extends base<T> {
|
|
foo: xyz;
|
|
}
|
|
declare class xyz extends abc {
|
|
~~~
|
|
!!! Generic type 'abc<T>' requires 1 type argument(s).
|
|
}
|
|
|
|
var bar = new xyz(); // Error: Invalid 'new' expression.
|
|
var r: xyz = bar.foo;
|
|
~~~
|
|
!!! Property 'foo' does not exist on type 'xyz'. |