2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/recursivelySpecializedConstructorDeclaration.ts ===
|
|
|
|
module MsPortal.Controls.Base.ItemList {
|
|
|
|
>MsPortal : typeof MsPortal
|
|
|
|
>Controls : typeof Controls
|
|
|
|
>Base : typeof Base
|
|
|
|
>ItemList : typeof ItemList
|
|
|
|
|
|
|
|
export interface Interface<TValue> {
|
|
|
|
>Interface : Interface<TValue>
|
|
|
|
>TValue : TValue
|
|
|
|
|
|
|
|
// Removing this line fixes the constructor of ItemValue
|
|
|
|
options: ViewModel<TValue>;
|
|
|
|
>options : ViewModel<TValue>
|
2014-08-19 04:56:03 +02:00
|
|
|
>ViewModel : ViewModel<TValue>
|
2014-08-15 23:33:16 +02:00
|
|
|
>TValue : TValue
|
|
|
|
}
|
|
|
|
|
|
|
|
export class ItemValue<T> {
|
|
|
|
>ItemValue : ItemValue<T>
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
constructor(value: T) {
|
|
|
|
>value : T
|
|
|
|
>T : T
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class ViewModel<TValue> extends ItemValue<TValue> {
|
|
|
|
>ViewModel : ViewModel<TValue>
|
|
|
|
>TValue : TValue
|
2014-08-19 04:56:03 +02:00
|
|
|
>ItemValue : ItemValue<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>TValue : TValue
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Generates:
|
|
|
|
/*
|
|
|
|
declare module MsPortal.Controls.Base.ItemList {
|
|
|
|
interface Interface<TValue> {
|
|
|
|
options: ViewModel<TValue>;
|
|
|
|
}
|
|
|
|
class ItemValue<T> {
|
|
|
|
constructor(value: T);
|
|
|
|
}
|
|
|
|
class ViewModel<TValue> extends ItemValue<TValue> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*/
|