2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/infinitelyExpandingOverloads.ts(23,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/infinitelyExpandingOverloads.ts (1 errors) ====
|
|
|
|
interface KnockoutSubscription2<T> {
|
|
|
|
target: KnockoutObservableBase2<T>;
|
|
|
|
}
|
|
|
|
interface KnockoutObservableBase2<T> {
|
|
|
|
subscribe(callback: (newValue: T) => void, target?: any, topic?: string): KnockoutSubscription2<T>;
|
|
|
|
}
|
|
|
|
interface ValidationPlacement2<TValue> {
|
|
|
|
initialize(validatable: Validatable2<TValue>): void;
|
|
|
|
}
|
|
|
|
interface Validatable2<TValue> {
|
|
|
|
validators: KnockoutObservableBase2<Validator2<TValue>>;
|
|
|
|
}
|
|
|
|
class Validator2<TValue> {
|
|
|
|
private _subscription: KnockoutSubscription2<TValue>;
|
|
|
|
}
|
|
|
|
class ViewModel<TValue> {
|
|
|
|
public validationPlacements: Array<ValidationPlacement2<TValue>> = new Array<ValidationPlacement2<TValue>>();
|
|
|
|
}
|
|
|
|
class Widget<TValue> {
|
|
|
|
constructor(viewModelType: new () => ViewModel<TValue>); // Shouldnt error on this overload
|
|
|
|
constructor(viewModelType: new () => ViewModel<TValue>) {
|
|
|
|
}
|
|
|
|
public get options(): ViewModel<TValue> {
|
|
|
|
~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
2014-07-13 01:04:16 +02:00
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|