2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/specializeVarArgs1.ts ===
|
|
|
|
interface Observable<T>{ }
|
|
|
|
>Observable : Observable<T>
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface ObservableArray<T> extends Observable<T[]>
|
|
|
|
>ObservableArray : ObservableArray<T>
|
|
|
|
>T : T
|
2014-08-19 04:56:03 +02:00
|
|
|
>Observable : Observable<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
push(...values: T[]);
|
|
|
|
>push : (...values: T[]) => any
|
|
|
|
>values : T[]
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function observableArray<T>(): ObservableArray<T> { return null;}
|
|
|
|
>observableArray : <T>() => ObservableArray<T>
|
|
|
|
>T : T
|
2014-08-19 04:56:03 +02:00
|
|
|
>ObservableArray : ObservableArray<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var a = observableArray<string>();
|
|
|
|
>a : ObservableArray<string>
|
|
|
|
>observableArray<string>() : ObservableArray<string>
|
|
|
|
>observableArray : <T>() => ObservableArray<T>
|
|
|
|
|
|
|
|
a.push('Some Value');
|
|
|
|
>a.push('Some Value') : any
|
|
|
|
>a.push : (...values: string[]) => any
|
|
|
|
>a : ObservableArray<string>
|
|
|
|
>push : (...values: string[]) => any
|
|
|
|
|