25 lines
385 B
Text
25 lines
385 B
Text
=== 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
|
|
|
|
|