TypeScript/tests/baselines/reference/objectTypeWithDuplicateNumericProperty.errors.txt

83 lines
3.5 KiB
Plaintext
Raw Normal View History

2014-10-01 02:15:18 +02:00
tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts(5,5): error TS2300: Duplicate identifier '1'.
tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts(6,5): error TS2300: Duplicate identifier '1.0'.
tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts(7,5): error TS2300: Duplicate identifier '1.'.
tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts(8,5): error TS2300: Duplicate identifier '1.00'.
2014-10-01 02:15:18 +02:00
tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts(12,5): error TS2300: Duplicate identifier '1'.
tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts(13,5): error TS2300: Duplicate identifier '1.0'.
tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts(14,5): error TS2300: Duplicate identifier '1.'.
tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts(15,5): error TS2300: Duplicate identifier '1.00'.
2014-10-01 02:15:18 +02:00
tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts(19,5): error TS2300: Duplicate identifier '1'.
tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts(20,5): error TS2300: Duplicate identifier '1.0'.
tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts(21,5): error TS2300: Duplicate identifier '1.'.
tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts(22,5): error TS2300: Duplicate identifier '1.00'.
2014-10-01 02:15:18 +02:00
tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts(26,5): error TS2300: Duplicate identifier '1'.
tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts(27,5): error TS2300: Duplicate identifier '1.0'.
tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts(28,5): error TS2300: Duplicate identifier '1.'.
tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts(29,5): error TS2300: Duplicate identifier '1.00'.
2014-10-01 02:15:18 +02:00
==== tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts (16 errors) ====
2014-07-13 01:04:16 +02:00
// numeric properties must be distinct after a ToNumber operation
// so the below are all errors
class C {
1;
2014-10-01 02:15:18 +02:00
~
!!! error TS2300: Duplicate identifier '1'.
2014-07-13 01:04:16 +02:00
1.0;
2014-10-01 20:27:20 +02:00
~~~
!!! error TS2300: Duplicate identifier '1.0'.
2014-07-13 01:04:16 +02:00
1.;
2014-10-01 20:27:20 +02:00
~~
!!! error TS2300: Duplicate identifier '1.'.
2014-07-13 01:04:16 +02:00
1.00;
2014-10-01 20:27:20 +02:00
~~~~
!!! error TS2300: Duplicate identifier '1.00'.
2014-07-13 01:04:16 +02:00
}
interface I {
1;
2014-10-01 02:15:18 +02:00
~
!!! error TS2300: Duplicate identifier '1'.
2014-07-13 01:04:16 +02:00
1.0;
2014-10-01 20:27:20 +02:00
~~~
!!! error TS2300: Duplicate identifier '1.0'.
2014-07-13 01:04:16 +02:00
1.;
2014-10-01 20:27:20 +02:00
~~
!!! error TS2300: Duplicate identifier '1.'.
2014-07-13 01:04:16 +02:00
1.00;
2014-10-01 20:27:20 +02:00
~~~~
!!! error TS2300: Duplicate identifier '1.00'.
2014-07-13 01:04:16 +02:00
}
var a: {
1;
2014-10-01 02:15:18 +02:00
~
!!! error TS2300: Duplicate identifier '1'.
2014-07-13 01:04:16 +02:00
1.0;
2014-10-01 20:27:20 +02:00
~~~
!!! error TS2300: Duplicate identifier '1.0'.
2014-07-13 01:04:16 +02:00
1.;
2014-10-01 20:27:20 +02:00
~~
!!! error TS2300: Duplicate identifier '1.'.
2014-07-13 01:04:16 +02:00
1.00;
2014-10-01 20:27:20 +02:00
~~~~
!!! error TS2300: Duplicate identifier '1.00'.
2014-07-13 01:04:16 +02:00
}
var b = {
1: 1,
2014-10-01 02:15:18 +02:00
~
!!! error TS2300: Duplicate identifier '1'.
2014-07-13 01:04:16 +02:00
1.0: 1,
2014-10-01 20:27:20 +02:00
~~~
!!! error TS2300: Duplicate identifier '1.0'.
2014-07-13 01:04:16 +02:00
1.: 1,
2014-10-01 20:27:20 +02:00
~~
!!! error TS2300: Duplicate identifier '1.'.
2014-07-13 01:04:16 +02:00
1.00: 1
2014-10-01 20:27:20 +02:00
~~~~
!!! error TS2300: Duplicate identifier '1.00'.
2014-07-13 01:04:16 +02:00
}