TypeScript/tests/baselines/reference/argumentsUsedInObjectLiteralProperty.types

22 lines
596 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/argumentsUsedInObjectLiteralProperty.ts ===
class A {
>A : A
2014-08-15 23:33:16 +02:00
public static createSelectableViewModel(initialState?: any, selectedValue?: any) {
>createSelectableViewModel : (initialState?: any, selectedValue?: any) => { selectedValue: number; }
>initialState : any
>selectedValue : any
2014-08-15 23:33:16 +02:00
return {
2014-08-22 03:39:46 +02:00
>{ selectedValue: arguments.length } : { selectedValue: number; }
2014-08-15 23:33:16 +02:00
selectedValue: arguments.length
>selectedValue : number
>arguments.length : number
>arguments : IArguments
>length : number
2014-08-15 23:33:16 +02:00
};
}
}