2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/duplicateClassElements.ts(9,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
|
|
tests/cases/compiler/duplicateClassElements.ts(12,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
|
|
tests/cases/compiler/duplicateClassElements.ts(15,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
|
|
tests/cases/compiler/duplicateClassElements.ts(18,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
|
|
tests/cases/compiler/duplicateClassElements.ts(23,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
|
|
tests/cases/compiler/duplicateClassElements.ts(26,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
|
|
tests/cases/compiler/duplicateClassElements.ts(29,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
|
|
tests/cases/compiler/duplicateClassElements.ts(32,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
|
|
tests/cases/compiler/duplicateClassElements.ts(36,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
|
|
tests/cases/compiler/duplicateClassElements.ts(39,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/compiler/duplicateClassElements.ts(2,12): error TS2300: Duplicate identifier 'a'.
|
2014-10-01 20:27:20 +02:00
|
|
|
tests/cases/compiler/duplicateClassElements.ts(3,12): error TS2300: Duplicate identifier 'a'.
|
|
|
|
tests/cases/compiler/duplicateClassElements.ts(4,12): error TS2393: Duplicate function implementation.
|
|
|
|
tests/cases/compiler/duplicateClassElements.ts(6,12): error TS2393: Duplicate function implementation.
|
2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/compiler/duplicateClassElements.ts(8,12): error TS2300: Duplicate identifier 'x'.
|
2014-10-01 20:27:20 +02:00
|
|
|
tests/cases/compiler/duplicateClassElements.ts(9,9): error TS2300: Duplicate identifier 'x'.
|
|
|
|
tests/cases/compiler/duplicateClassElements.ts(12,9): error TS2300: Duplicate identifier 'x'.
|
2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/compiler/duplicateClassElements.ts(21,12): error TS2300: Duplicate identifier 'z'.
|
2014-10-01 20:27:20 +02:00
|
|
|
tests/cases/compiler/duplicateClassElements.ts(23,9): error TS2300: Duplicate identifier 'z'.
|
|
|
|
tests/cases/compiler/duplicateClassElements.ts(26,9): error TS2300: Duplicate identifier 'z'.
|
2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/compiler/duplicateClassElements.ts(29,9): error TS2300: Duplicate identifier 'x2'.
|
|
|
|
tests/cases/compiler/duplicateClassElements.ts(32,9): error TS2300: Duplicate identifier 'x2'.
|
2014-10-01 20:27:20 +02:00
|
|
|
tests/cases/compiler/duplicateClassElements.ts(34,12): error TS2300: Duplicate identifier 'x2'.
|
2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/compiler/duplicateClassElements.ts(36,9): error TS2300: Duplicate identifier 'z2'.
|
|
|
|
tests/cases/compiler/duplicateClassElements.ts(39,9): error TS2300: Duplicate identifier 'z2'.
|
2014-10-01 20:27:20 +02:00
|
|
|
tests/cases/compiler/duplicateClassElements.ts(41,12): error TS2300: Duplicate identifier 'z2'.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-10-01 02:15:18 +02:00
|
|
|
==== tests/cases/compiler/duplicateClassElements.ts (26 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
class a {
|
|
|
|
public a;
|
|
|
|
~
|
2014-10-01 02:15:18 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'a'.
|
|
|
|
public a;
|
2014-10-01 20:27:20 +02:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'a'.
|
2014-07-13 01:04:16 +02:00
|
|
|
public b() {
|
2014-10-01 20:27:20 +02:00
|
|
|
~
|
2014-10-01 02:15:18 +02:00
|
|
|
!!! error TS2393: Duplicate function implementation.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2014-10-01 20:27:20 +02:00
|
|
|
public b() {
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2393: Duplicate function implementation.
|
2014-10-01 20:27:20 +02:00
|
|
|
}
|
2014-07-13 01:04:16 +02:00
|
|
|
public x;
|
2014-10-01 02:15:18 +02:00
|
|
|
~
|
|
|
|
!!! error TS2300: Duplicate identifier 'x'.
|
2014-07-13 01:04:16 +02:00
|
|
|
get x() {
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
2014-10-01 20:27:20 +02:00
|
|
|
~
|
|
|
|
!!! error TS2300: Duplicate identifier 'x'.
|
2014-07-13 01:04:16 +02:00
|
|
|
return 10;
|
|
|
|
}
|
|
|
|
set x(_x: number) {
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
2014-10-01 20:27:20 +02:00
|
|
|
~
|
2014-10-01 02:15:18 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'x'.
|
2014-10-01 20:27:20 +02:00
|
|
|
}
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
get y() {
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
2014-07-13 01:04:16 +02:00
|
|
|
return "Hello";
|
|
|
|
}
|
|
|
|
set y(_y: string) {
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public z() {
|
2014-10-01 02:15:18 +02:00
|
|
|
~
|
|
|
|
!!! error TS2300: Duplicate identifier 'z'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
get z() {
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
2014-10-01 20:27:20 +02:00
|
|
|
~
|
|
|
|
!!! error TS2300: Duplicate identifier 'z'.
|
2014-07-13 01:04:16 +02:00
|
|
|
return "Hello";
|
|
|
|
}
|
|
|
|
set z(_y: string) {
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
2014-10-01 20:27:20 +02:00
|
|
|
~
|
2014-10-01 02:15:18 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'z'.
|
2014-10-01 20:27:20 +02:00
|
|
|
}
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
get x2() {
|
|
|
|
~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
2014-10-01 02:15:18 +02:00
|
|
|
~~
|
|
|
|
!!! error TS2300: Duplicate identifier 'x2'.
|
2014-07-13 01:04:16 +02:00
|
|
|
return 10;
|
|
|
|
}
|
|
|
|
set x2(_x: number) {
|
|
|
|
~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
2014-10-01 02:15:18 +02:00
|
|
|
~~
|
|
|
|
!!! error TS2300: Duplicate identifier 'x2'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
public x2;
|
2014-10-01 20:27:20 +02:00
|
|
|
~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'x2'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
get z2() {
|
|
|
|
~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
2014-10-01 02:15:18 +02:00
|
|
|
~~
|
|
|
|
!!! error TS2300: Duplicate identifier 'z2'.
|
2014-07-13 01:04:16 +02:00
|
|
|
return "Hello";
|
|
|
|
}
|
|
|
|
set z2(_y: string) {
|
|
|
|
~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
2014-10-01 02:15:18 +02:00
|
|
|
~~
|
|
|
|
!!! error TS2300: Duplicate identifier 'z2'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
public z2() {
|
2014-10-01 20:27:20 +02:00
|
|
|
~~
|
2014-10-01 02:15:18 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'z2'.
|
2014-10-01 20:27:20 +02:00
|
|
|
}
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
}
|