53 lines
2.7 KiB
Text
53 lines
2.7 KiB
Text
=== tests/cases/compiler/collisionArgumentsInType.ts ===
|
|
var v1: (i: number, ...arguments) => void; // no error - no code gen
|
|
>v1 : Symbol(v1, Decl(collisionArgumentsInType.ts, 0, 3))
|
|
>i : Symbol(i, Decl(collisionArgumentsInType.ts, 0, 9))
|
|
>arguments : Symbol(arguments, Decl(collisionArgumentsInType.ts, 0, 19))
|
|
|
|
var v12: (arguments: number, ...restParameters) => void; // no error - no code gen
|
|
>v12 : Symbol(v12, Decl(collisionArgumentsInType.ts, 1, 3))
|
|
>arguments : Symbol(arguments, Decl(collisionArgumentsInType.ts, 1, 10))
|
|
>restParameters : Symbol(restParameters, Decl(collisionArgumentsInType.ts, 1, 28))
|
|
|
|
var v2: {
|
|
>v2 : Symbol(v2, Decl(collisionArgumentsInType.ts, 2, 3))
|
|
|
|
(arguments: number, ...restParameters); // no error - no code gen
|
|
>arguments : Symbol(arguments, Decl(collisionArgumentsInType.ts, 3, 5))
|
|
>restParameters : Symbol(restParameters, Decl(collisionArgumentsInType.ts, 3, 23))
|
|
|
|
new (arguments: number, ...restParameters); // no error - no code gen
|
|
>arguments : Symbol(arguments, Decl(collisionArgumentsInType.ts, 4, 9))
|
|
>restParameters : Symbol(restParameters, Decl(collisionArgumentsInType.ts, 4, 27))
|
|
|
|
foo(arguments: number, ...restParameters); // no error - no code gen
|
|
>foo : Symbol(foo, Decl(collisionArgumentsInType.ts, 4, 47))
|
|
>arguments : Symbol(arguments, Decl(collisionArgumentsInType.ts, 5, 8))
|
|
>restParameters : Symbol(restParameters, Decl(collisionArgumentsInType.ts, 5, 26))
|
|
|
|
prop: (arguments: number, ...restParameters) => void; // no error - no code gen
|
|
>prop : Symbol(prop, Decl(collisionArgumentsInType.ts, 5, 46))
|
|
>arguments : Symbol(arguments, Decl(collisionArgumentsInType.ts, 6, 11))
|
|
>restParameters : Symbol(restParameters, Decl(collisionArgumentsInType.ts, 6, 29))
|
|
}
|
|
var v21: {
|
|
>v21 : Symbol(v21, Decl(collisionArgumentsInType.ts, 8, 3))
|
|
|
|
(i: number, ...arguments); // no error - no code gen
|
|
>i : Symbol(i, Decl(collisionArgumentsInType.ts, 9, 5))
|
|
>arguments : Symbol(arguments, Decl(collisionArgumentsInType.ts, 9, 15))
|
|
|
|
new (i: number, ...arguments); // no error - no code gen
|
|
>i : Symbol(i, Decl(collisionArgumentsInType.ts, 10, 9))
|
|
>arguments : Symbol(arguments, Decl(collisionArgumentsInType.ts, 10, 19))
|
|
|
|
foo(i: number, ...arguments); // no error - no code gen
|
|
>foo : Symbol(foo, Decl(collisionArgumentsInType.ts, 10, 34))
|
|
>i : Symbol(i, Decl(collisionArgumentsInType.ts, 11, 8))
|
|
>arguments : Symbol(arguments, Decl(collisionArgumentsInType.ts, 11, 18))
|
|
|
|
prop: (i: number, ...arguments) => void; // no error - no code gen
|
|
>prop : Symbol(prop, Decl(collisionArgumentsInType.ts, 11, 33))
|
|
>i : Symbol(i, Decl(collisionArgumentsInType.ts, 12, 11))
|
|
>arguments : Symbol(arguments, Decl(collisionArgumentsInType.ts, 12, 21))
|
|
}
|