Files
tsgo/testdata/baselines/reference/submoduleAccepted/conformance/objectLiteralErrors(target=es2015).errors.txt.diff

204 lines
12 KiB
Diff

--- old.objectLiteralErrors(target=es2015).errors.txt
+++ new.objectLiteralErrors(target=es2015).errors.txt
@@= skipped -15, +15 lines =@@
objectLiteralErrors.ts(17,23): error TS1117: An object literal cannot have multiple properties with the same name.
objectLiteralErrors.ts(18,22): error TS1117: An object literal cannot have multiple properties with the same name.
objectLiteralErrors.ts(19,25): error TS1117: An object literal cannot have multiple properties with the same name.
-objectLiteralErrors.ts(22,12): error TS2300: Duplicate identifier 'a'.
objectLiteralErrors.ts(22,22): error TS1119: An object literal cannot have property and accessor with the same name.
-objectLiteralErrors.ts(22,22): error TS2300: Duplicate identifier 'a'.
-objectLiteralErrors.ts(23,12): error TS2300: Duplicate identifier 'a'.
objectLiteralErrors.ts(23,23): error TS1119: An object literal cannot have property and accessor with the same name.
-objectLiteralErrors.ts(23,23): error TS2300: Duplicate identifier 'a'.
-objectLiteralErrors.ts(24,12): error TS2300: Duplicate identifier 'a'.
objectLiteralErrors.ts(24,22): error TS1119: An object literal cannot have property and accessor with the same name.
-objectLiteralErrors.ts(24,22): error TS2300: Duplicate identifier 'a'.
-objectLiteralErrors.ts(25,12): error TS2300: Duplicate identifier 'a'.
objectLiteralErrors.ts(25,25): error TS1119: An object literal cannot have property and accessor with the same name.
-objectLiteralErrors.ts(25,25): error TS2300: Duplicate identifier 'a'.
-objectLiteralErrors.ts(26,12): error TS2300: Duplicate identifier 'a'.
objectLiteralErrors.ts(26,23): error TS1119: An object literal cannot have property and accessor with the same name.
-objectLiteralErrors.ts(26,23): error TS2300: Duplicate identifier 'a'.
-objectLiteralErrors.ts(27,12): error TS2300: Duplicate identifier 'a'.
objectLiteralErrors.ts(27,22): error TS1119: An object literal cannot have property and accessor with the same name.
-objectLiteralErrors.ts(27,22): error TS2300: Duplicate identifier ''a''.
-objectLiteralErrors.ts(28,12): error TS2300: Duplicate identifier ''a''.
objectLiteralErrors.ts(28,24): error TS1119: An object literal cannot have property and accessor with the same name.
-objectLiteralErrors.ts(28,24): error TS2300: Duplicate identifier 'a'.
-objectLiteralErrors.ts(29,12): error TS2300: Duplicate identifier ''a''.
objectLiteralErrors.ts(29,24): error TS1119: An object literal cannot have property and accessor with the same name.
-objectLiteralErrors.ts(29,24): error TS2300: Duplicate identifier '"a"'.
-objectLiteralErrors.ts(30,12): error TS2300: Duplicate identifier ''a''.
objectLiteralErrors.ts(30,24): error TS1119: An object literal cannot have property and accessor with the same name.
-objectLiteralErrors.ts(30,24): error TS2300: Duplicate identifier ''a''.
-objectLiteralErrors.ts(31,13): error TS2300: Duplicate identifier '"a"'.
objectLiteralErrors.ts(31,25): error TS1119: An object literal cannot have property and accessor with the same name.
-objectLiteralErrors.ts(31,25): error TS2300: Duplicate identifier ''a''.
-objectLiteralErrors.ts(32,13): error TS2300: Duplicate identifier '1.0'.
objectLiteralErrors.ts(32,25): error TS1119: An object literal cannot have property and accessor with the same name.
-objectLiteralErrors.ts(32,25): error TS2300: Duplicate identifier ''1''.
-objectLiteralErrors.ts(33,13): error TS2300: Duplicate identifier '0'.
objectLiteralErrors.ts(33,23): error TS1119: An object literal cannot have property and accessor with the same name.
-objectLiteralErrors.ts(33,23): error TS2300: Duplicate identifier '0'.
-objectLiteralErrors.ts(34,13): error TS2300: Duplicate identifier '0'.
objectLiteralErrors.ts(34,23): error TS1119: An object literal cannot have property and accessor with the same name.
-objectLiteralErrors.ts(34,23): error TS2300: Duplicate identifier '0'.
-objectLiteralErrors.ts(35,13): error TS2300: Duplicate identifier '0'.
objectLiteralErrors.ts(35,23): error TS1119: An object literal cannot have property and accessor with the same name.
-objectLiteralErrors.ts(35,23): error TS2300: Duplicate identifier '0x0'.
-objectLiteralErrors.ts(36,13): error TS2300: Duplicate identifier '0'.
objectLiteralErrors.ts(36,23): error TS1119: An object literal cannot have property and accessor with the same name.
-objectLiteralErrors.ts(36,23): error TS2300: Duplicate identifier '0o0'.
-objectLiteralErrors.ts(37,13): error TS2300: Duplicate identifier '"100"'.
objectLiteralErrors.ts(37,27): error TS1119: An object literal cannot have property and accessor with the same name.
-objectLiteralErrors.ts(37,27): error TS2300: Duplicate identifier '1e2'.
-objectLiteralErrors.ts(38,13): error TS2300: Duplicate identifier '0x20'.
objectLiteralErrors.ts(38,26): error TS1119: An object literal cannot have property and accessor with the same name.
-objectLiteralErrors.ts(38,26): error TS2300: Duplicate identifier '3.2e1'.
-objectLiteralErrors.ts(39,13): error TS2300: Duplicate identifier 'a'.
objectLiteralErrors.ts(39,46): error TS1119: An object literal cannot have property and accessor with the same name.
-objectLiteralErrors.ts(39,46): error TS2300: Duplicate identifier 'a'.
objectLiteralErrors.ts(43,22): error TS2322: Type 'number' is not assignable to type 'string'.
objectLiteralErrors.ts(44,30): error TS2322: Type 'undefined' is not assignable to type 'number'.
objectLiteralErrors.ts(48,7): error TS1312: Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern.
@@= skipped -61, +25 lines =@@
objectLiteralErrors.ts(50,5): error TS18016: Private identifiers are not allowed outside class bodies.
-==== objectLiteralErrors.ts (77 errors) ====
+==== objectLiteralErrors.ts (41 errors) ====
// Multiple properties with the same name
var e1 = { a: 0, a: 0 };
~
@@= skipped -59, +59 lines =@@
// Accessor and property with the same name
var f1 = { a: 0, get a() { return 0; } };
- ~
-!!! error TS2300: Duplicate identifier 'a'.
~
!!! error TS1119: An object literal cannot have property and accessor with the same name.
- ~
-!!! error TS2300: Duplicate identifier 'a'.
var f2 = { a: '', get a() { return ''; } };
- ~
-!!! error TS2300: Duplicate identifier 'a'.
~
!!! error TS1119: An object literal cannot have property and accessor with the same name.
- ~
-!!! error TS2300: Duplicate identifier 'a'.
var f3 = { a: 0, get a() { return ''; } };
- ~
-!!! error TS2300: Duplicate identifier 'a'.
~
!!! error TS1119: An object literal cannot have property and accessor with the same name.
- ~
-!!! error TS2300: Duplicate identifier 'a'.
var f4 = { a: true, get a() { return false; } };
- ~
-!!! error TS2300: Duplicate identifier 'a'.
~
!!! error TS1119: An object literal cannot have property and accessor with the same name.
- ~
-!!! error TS2300: Duplicate identifier 'a'.
var f5 = { a: {}, get a() { return {}; } };
- ~
-!!! error TS2300: Duplicate identifier 'a'.
~
!!! error TS1119: An object literal cannot have property and accessor with the same name.
- ~
-!!! error TS2300: Duplicate identifier 'a'.
var f6 = { a: 0, get 'a'() { return 0; } };
- ~
-!!! error TS2300: Duplicate identifier 'a'.
~~~
!!! error TS1119: An object literal cannot have property and accessor with the same name.
- ~~~
-!!! error TS2300: Duplicate identifier ''a''.
var f7 = { 'a': 0, get a() { return 0; } };
- ~~~
-!!! error TS2300: Duplicate identifier ''a''.
~
!!! error TS1119: An object literal cannot have property and accessor with the same name.
- ~
-!!! error TS2300: Duplicate identifier 'a'.
var f8 = { 'a': 0, get "a"() { return 0; } };
- ~~~
-!!! error TS2300: Duplicate identifier ''a''.
~~~
!!! error TS1119: An object literal cannot have property and accessor with the same name.
- ~~~
-!!! error TS2300: Duplicate identifier '"a"'.
var f9 = { 'a': 0, get 'a'() { return 0; } };
- ~~~
-!!! error TS2300: Duplicate identifier ''a''.
~~~
!!! error TS1119: An object literal cannot have property and accessor with the same name.
- ~~~
-!!! error TS2300: Duplicate identifier ''a''.
var f10 = { "a": 0, get 'a'() { return 0; } };
- ~~~
-!!! error TS2300: Duplicate identifier '"a"'.
~~~
!!! error TS1119: An object literal cannot have property and accessor with the same name.
- ~~~
-!!! error TS2300: Duplicate identifier ''a''.
var f11 = { 1.0: 0, get '1'() { return 0; } };
- ~~~
-!!! error TS2300: Duplicate identifier '1.0'.
~~~
!!! error TS1119: An object literal cannot have property and accessor with the same name.
- ~~~
-!!! error TS2300: Duplicate identifier ''1''.
var f12 = { 0: 0, get 0() { return 0; } };
- ~
-!!! error TS2300: Duplicate identifier '0'.
~
!!! error TS1119: An object literal cannot have property and accessor with the same name.
- ~
-!!! error TS2300: Duplicate identifier '0'.
var f13 = { 0: 0, get 0() { return 0; } };
- ~
-!!! error TS2300: Duplicate identifier '0'.
~
!!! error TS1119: An object literal cannot have property and accessor with the same name.
- ~
-!!! error TS2300: Duplicate identifier '0'.
var f14 = { 0: 0, get 0x0() { return 0; } };
- ~
-!!! error TS2300: Duplicate identifier '0'.
~~~
!!! error TS1119: An object literal cannot have property and accessor with the same name.
- ~~~
-!!! error TS2300: Duplicate identifier '0x0'.
var f14 = { 0: 0, get 0o0() { return 0; } };
- ~
-!!! error TS2300: Duplicate identifier '0'.
~~~
!!! error TS1119: An object literal cannot have property and accessor with the same name.
- ~~~
-!!! error TS2300: Duplicate identifier '0o0'.
var f15 = { "100": 0, get 1e2() { return 0; } };
- ~~~~~
-!!! error TS2300: Duplicate identifier '"100"'.
~~~
!!! error TS1119: An object literal cannot have property and accessor with the same name.
- ~~~
-!!! error TS2300: Duplicate identifier '1e2'.
var f16 = { 0x20: 0, get 3.2e1() { return 0; } };
- ~~~~
-!!! error TS2300: Duplicate identifier '0x20'.
~~~~~
!!! error TS1119: An object literal cannot have property and accessor with the same name.
- ~~~~~
-!!! error TS2300: Duplicate identifier '3.2e1'.
var f17 = { a: 0, get b() { return 1; }, get a() { return 0; } };
- ~
-!!! error TS2300: Duplicate identifier 'a'.
~
!!! error TS1119: An object literal cannot have property and accessor with the same name.
- ~
-!!! error TS2300: Duplicate identifier 'a'.
// Get and set accessor with mismatched type annotations (only g2 is an error after #43662 implemented)
var g1 = { get a(): number { return 4; }, set a(n: string) { } };