203 lines
No EOL
14 KiB
Text
203 lines
No EOL
14 KiB
Text
tests/cases/compiler/collisionArgumentsClassConstructor.ts(3,28): error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(3,31): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(4,13): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(8,17): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(8,17): error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(9,13): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(13,17): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(14,13): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(20,13): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(25,13): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(30,17): error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(30,24): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(31,13): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(35,24): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(36,13): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(41,31): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(44,17): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(47,17): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(51,31): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(52,31): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(53,25): error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(53,28): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(54,13): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(59,17): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(60,17): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(61,17): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(61,17): error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(62,13): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(67,17): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(68,17): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(69,17): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(70,13): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(75,31): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(76,31): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(79,17): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(80,17): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(84,17): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
tests/cases/compiler/collisionArgumentsClassConstructor.ts(85,17): error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
|
|
|
|
==== tests/cases/compiler/collisionArgumentsClassConstructor.ts (38 errors) ====
|
|
// Constructors
|
|
class c1 {
|
|
constructor(i: number, ...arguments) { // error
|
|
~~~~~~~~~~~~
|
|
!!! error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
var arguments: any[]; // no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
}
|
|
}
|
|
class c12 {
|
|
constructor(arguments: number, ...rest) { // error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
~~~~~~~~~~~~~~~~~
|
|
!!! error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.
|
|
var arguments = 10; // no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
}
|
|
}
|
|
class c1NoError {
|
|
constructor(arguments: number) { // no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
var arguments = 10; // no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
}
|
|
}
|
|
|
|
class c2 {
|
|
constructor(...restParameters) {
|
|
var arguments = 10; // no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
}
|
|
}
|
|
class c2NoError {
|
|
constructor() {
|
|
var arguments = 10; // no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
}
|
|
}
|
|
|
|
class c3 {
|
|
constructor(public arguments: number, ...restParameters) { //arguments is error
|
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
var arguments = 10; // no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
}
|
|
}
|
|
class c3NoError {
|
|
constructor(public arguments: number) { // no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
var arguments = 10; // no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
}
|
|
}
|
|
|
|
declare class c4 {
|
|
constructor(i: number, ...arguments); // No error - no code gen
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
}
|
|
declare class c42 {
|
|
constructor(arguments: number, ...rest); // No error - no code gen
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
}
|
|
declare class c4NoError {
|
|
constructor(arguments: number); // no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
}
|
|
|
|
class c5 {
|
|
constructor(i: number, ...arguments); // no codegen no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
constructor(i: string, ...arguments); // no codegen no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
constructor(i: any, ...arguments) { // error
|
|
~~~~~~~~~~~~
|
|
!!! error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
var arguments: any[]; // no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
}
|
|
}
|
|
|
|
class c52 {
|
|
constructor(arguments: number, ...rest); // no codegen no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
constructor(arguments: string, ...rest); // no codegen no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
constructor(arguments: any, ...rest) { // error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
~~~~~~~~~~~~~~
|
|
!!! error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.
|
|
var arguments: any; // no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
}
|
|
}
|
|
|
|
class c5NoError {
|
|
constructor(arguments: number); // no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
constructor(arguments: string); // no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
constructor(arguments: any) { // no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
var arguments: any; // no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
}
|
|
}
|
|
|
|
declare class c6 {
|
|
constructor(i: number, ...arguments); // no codegen no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
constructor(i: string, ...arguments); // no codegen no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
}
|
|
declare class c62 {
|
|
constructor(arguments: number, ...rest); // no codegen no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
constructor(arguments: string, ...rest); // no codegen no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
}
|
|
|
|
declare class c6NoError {
|
|
constructor(arguments: number); // no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
constructor(arguments: string); // no error
|
|
~~~~~~~~~
|
|
!!! error TS1210: Invalid use of 'arguments'. Class definitions are automatically in strict mode.
|
|
} |