63 lines
2.6 KiB
Text
63 lines
2.6 KiB
Text
=== tests/cases/compiler/collisionArgumentsInterfaceMembers.ts ===
|
|
// call
|
|
interface i1 {
|
|
>i1 : Symbol(i1, Decl(collisionArgumentsInterfaceMembers.ts, 0, 0))
|
|
|
|
(i: number, ...arguments); // no error - no code gen
|
|
>i : Symbol(i, Decl(collisionArgumentsInterfaceMembers.ts, 2, 5))
|
|
>arguments : Symbol(arguments, Decl(collisionArgumentsInterfaceMembers.ts, 2, 15))
|
|
}
|
|
interface i12 {
|
|
>i12 : Symbol(i12, Decl(collisionArgumentsInterfaceMembers.ts, 3, 1))
|
|
|
|
(arguments: number, ...rest); // no error - no code gen
|
|
>arguments : Symbol(arguments, Decl(collisionArgumentsInterfaceMembers.ts, 5, 5))
|
|
>rest : Symbol(rest, Decl(collisionArgumentsInterfaceMembers.ts, 5, 23))
|
|
}
|
|
interface i1NoError {
|
|
>i1NoError : Symbol(i1NoError, Decl(collisionArgumentsInterfaceMembers.ts, 6, 1))
|
|
|
|
(arguments: number); // no error
|
|
>arguments : Symbol(arguments, Decl(collisionArgumentsInterfaceMembers.ts, 8, 5))
|
|
}
|
|
|
|
// new
|
|
interface i2 {
|
|
>i2 : Symbol(i2, Decl(collisionArgumentsInterfaceMembers.ts, 9, 1))
|
|
|
|
new (i: number, ...arguments); // no error - no code gen
|
|
>i : Symbol(i, Decl(collisionArgumentsInterfaceMembers.ts, 13, 9))
|
|
>arguments : Symbol(arguments, Decl(collisionArgumentsInterfaceMembers.ts, 13, 19))
|
|
}
|
|
interface i21 {
|
|
>i21 : Symbol(i21, Decl(collisionArgumentsInterfaceMembers.ts, 14, 1))
|
|
|
|
new (arguments: number, ...rest); // no error - no code gen
|
|
>arguments : Symbol(arguments, Decl(collisionArgumentsInterfaceMembers.ts, 16, 9))
|
|
>rest : Symbol(rest, Decl(collisionArgumentsInterfaceMembers.ts, 16, 27))
|
|
}
|
|
interface i2NoError {
|
|
>i2NoError : Symbol(i2NoError, Decl(collisionArgumentsInterfaceMembers.ts, 17, 1))
|
|
|
|
new (arguments: number); // no error
|
|
>arguments : Symbol(arguments, Decl(collisionArgumentsInterfaceMembers.ts, 19, 9))
|
|
}
|
|
|
|
// method
|
|
interface i3 {
|
|
>i3 : Symbol(i3, Decl(collisionArgumentsInterfaceMembers.ts, 20, 1))
|
|
|
|
foo(i: number, ...arguments); // no error - no code gen
|
|
>foo : Symbol(foo, Decl(collisionArgumentsInterfaceMembers.ts, 23, 14))
|
|
>i : Symbol(i, Decl(collisionArgumentsInterfaceMembers.ts, 24, 8))
|
|
>arguments : Symbol(arguments, Decl(collisionArgumentsInterfaceMembers.ts, 24, 18))
|
|
|
|
foo1(arguments: number, ...rest); // no error - no code gen
|
|
>foo1 : Symbol(foo1, Decl(collisionArgumentsInterfaceMembers.ts, 24, 33))
|
|
>arguments : Symbol(arguments, Decl(collisionArgumentsInterfaceMembers.ts, 25, 9))
|
|
>rest : Symbol(rest, Decl(collisionArgumentsInterfaceMembers.ts, 25, 27))
|
|
|
|
fooNoError(arguments: number); // no error
|
|
>fooNoError : Symbol(fooNoError, Decl(collisionArgumentsInterfaceMembers.ts, 25, 37))
|
|
>arguments : Symbol(arguments, Decl(collisionArgumentsInterfaceMembers.ts, 26, 15))
|
|
}
|