26 lines
385 B
Plaintext
26 lines
385 B
Plaintext
|
=== tests/cases/compiler/recursiveBaseConstructorCreation2.ts ===
|
||
|
declare class base
|
||
|
>base : base
|
||
|
{
|
||
|
}
|
||
|
declare class abc extends base
|
||
|
>abc : abc
|
||
|
>base : base
|
||
|
{
|
||
|
foo: xyz;
|
||
|
>foo : xyz
|
||
|
>xyz : xyz
|
||
|
}
|
||
|
declare class xyz extends abc
|
||
|
>xyz : xyz
|
||
|
>abc : abc
|
||
|
{
|
||
|
}
|
||
|
|
||
|
var bar = new xyz(); // Error: Invalid 'new' expression.
|
||
|
>bar : xyz
|
||
|
>new xyz() : xyz
|
||
|
>xyz : typeof xyz
|
||
|
|
||
|
|