19 lines
779 B
Plaintext
19 lines
779 B
Plaintext
tests/cases/compiler/recursiveBaseConstructorCreation3.ts(6,27): error TS2314: Generic type 'abc<T>' requires 1 type argument(s).
|
|
tests/cases/compiler/recursiveBaseConstructorCreation3.ts(10,18): error TS2339: Property 'foo' does not exist on type 'xyz'.
|
|
|
|
|
|
==== 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 {
|
|
~~~
|
|
!!! error TS2314: Generic type 'abc<T>' requires 1 type argument(s).
|
|
}
|
|
|
|
var bar = new xyz(); // Error: Invalid 'new' expression.
|
|
var r: xyz = bar.foo;
|
|
~~~
|
|
!!! error TS2339: Property 'foo' does not exist on type 'xyz'. |