2014-09-12 22:35:07 +02:00
|
|
|
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'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== 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 {
|
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2314: Generic type 'abc<T>' requires 1 type argument(s).
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
var bar = new xyz(); // Error: Invalid 'new' expression.
|
|
|
|
var r: xyz = bar.foo;
|
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2339: Property 'foo' does not exist on type 'xyz'.
|