37 lines
687 B
Text
37 lines
687 B
Text
|
=== tests/cases/compiler/argsInScope.ts ===
|
||
|
class C {
|
||
|
>C : C
|
||
|
|
||
|
P(ii:number, j:number, k:number) {
|
||
|
>P : (ii: number, j: number, k: number) => void
|
||
|
>ii : number
|
||
|
>j : number
|
||
|
>k : number
|
||
|
|
||
|
for (var i = 0; i < arguments.length; i++) {
|
||
|
>i : number
|
||
|
>i < arguments.length : boolean
|
||
|
>i : number
|
||
|
>arguments.length : number
|
||
|
>arguments : IArguments
|
||
|
>length : number
|
||
|
>i++ : number
|
||
|
>i : number
|
||
|
|
||
|
// WScript.Echo("param: " + arguments[i]);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var c = new C();
|
||
|
>c : C
|
||
|
>new C() : C
|
||
|
>C : typeof C
|
||
|
|
||
|
c.P(1,2,3);
|
||
|
>c.P(1,2,3) : void
|
||
|
>c.P : (ii: number, j: number, k: number) => void
|
||
|
>c : C
|
||
|
>P : (ii: number, j: number, k: number) => void
|
||
|
|