Accepting new baselines
This commit is contained in:
parent
ee0060bb2f
commit
7405a4b9c8
|
@ -21,8 +21,8 @@ class D {
|
|||
}
|
||||
|
||||
var x = {
|
||||
>x : { a: number; }
|
||||
>{ get a() { return 1 }} : { a: number; }
|
||||
>x : { readonly a: number; }
|
||||
>{ get a() { return 1 }} : { readonly a: number; }
|
||||
|
||||
get a() { return 1 }
|
||||
>a : number
|
||||
|
|
|
@ -6,12 +6,15 @@ tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesize
|
|||
tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesizedIdentifiers.ts(17,1): error TS2364: Invalid left-hand side of assignment expression.
|
||||
tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesizedIdentifiers.ts(18,1): error TS2364: Invalid left-hand side of assignment expression.
|
||||
tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesizedIdentifiers.ts(25,5): error TS2364: Invalid left-hand side of assignment expression.
|
||||
tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesizedIdentifiers.ts(27,1): error TS2364: Invalid left-hand side of assignment expression.
|
||||
tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesizedIdentifiers.ts(28,1): error TS2364: Invalid left-hand side of assignment expression.
|
||||
tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesizedIdentifiers.ts(29,1): error TS2364: Invalid left-hand side of assignment expression.
|
||||
tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesizedIdentifiers.ts(31,1): error TS2364: Invalid left-hand side of assignment expression.
|
||||
tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesizedIdentifiers.ts(32,1): error TS2364: Invalid left-hand side of assignment expression.
|
||||
tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesizedIdentifiers.ts(33,1): error TS2364: Invalid left-hand side of assignment expression.
|
||||
tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesizedIdentifiers.ts(31,1): error TS2322: Type '{ x: string; }' is not assignable to type 'typeof M3'.
|
||||
Types of property 'x' are incompatible.
|
||||
Type 'string' is not assignable to type 'number'.
|
||||
tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesizedIdentifiers.ts(32,1): error TS2322: Type '{ x: string; }' is not assignable to type 'typeof M3'.
|
||||
Types of property 'x' are incompatible.
|
||||
Type 'string' is not assignable to type 'number'.
|
||||
tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesizedIdentifiers.ts(33,1): error TS2322: Type '{ x: string; }' is not assignable to type 'typeof M3'.
|
||||
Types of property 'x' are incompatible.
|
||||
Type 'string' is not assignable to type 'number'.
|
||||
tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesizedIdentifiers.ts(37,1): error TS2364: Invalid left-hand side of assignment expression.
|
||||
tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesizedIdentifiers.ts(38,1): error TS2364: Invalid left-hand side of assignment expression.
|
||||
tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesizedIdentifiers.ts(43,5): error TS2322: Type 'string' is not assignable to type 'number'.
|
||||
|
@ -27,7 +30,7 @@ tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesize
|
|||
tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesizedIdentifiers.ts(70,1): error TS2364: Invalid left-hand side of assignment expression.
|
||||
|
||||
|
||||
==== tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesizedIdentifiers.ts (27 errors) ====
|
||||
==== tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesizedIdentifiers.ts (24 errors) ====
|
||||
var x: number;
|
||||
x = 3; // OK
|
||||
(x) = 3; // OK
|
||||
|
@ -71,24 +74,24 @@ tests/cases/conformance/expressions/valuesAndReferences/assignmentToParenthesize
|
|||
!!! error TS2364: Invalid left-hand side of assignment expression.
|
||||
}
|
||||
M2.M3 = { x: 3 }; // OK
|
||||
~~~~~
|
||||
!!! error TS2364: Invalid left-hand side of assignment expression.
|
||||
(M2).M3 = { x: 3 }; // OK
|
||||
~~~~~~~
|
||||
!!! error TS2364: Invalid left-hand side of assignment expression.
|
||||
(M2.M3) = { x: 3 }; // OK
|
||||
~~~~~~~
|
||||
!!! error TS2364: Invalid left-hand side of assignment expression.
|
||||
|
||||
M2.M3 = { x: '' }; // Error
|
||||
~~~~~
|
||||
!!! error TS2364: Invalid left-hand side of assignment expression.
|
||||
!!! error TS2322: Type '{ x: string; }' is not assignable to type 'typeof M3'.
|
||||
!!! error TS2322: Types of property 'x' are incompatible.
|
||||
!!! error TS2322: Type 'string' is not assignable to type 'number'.
|
||||
(M2).M3 = { x: '' }; // Error
|
||||
~~~~~~~
|
||||
!!! error TS2364: Invalid left-hand side of assignment expression.
|
||||
!!! error TS2322: Type '{ x: string; }' is not assignable to type 'typeof M3'.
|
||||
!!! error TS2322: Types of property 'x' are incompatible.
|
||||
!!! error TS2322: Type 'string' is not assignable to type 'number'.
|
||||
(M2.M3) = { x: '' }; // Error
|
||||
~~~~~~~
|
||||
!!! error TS2364: Invalid left-hand side of assignment expression.
|
||||
!!! error TS2322: Type '{ x: string; }' is not assignable to type 'typeof M3'.
|
||||
!!! error TS2322: Types of property 'x' are incompatible.
|
||||
!!! error TS2322: Type 'string' is not assignable to type 'number'.
|
||||
|
||||
|
||||
function fn() { }
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
=== tests/cases/compiler/commentsOnObjectLiteral4.ts ===
|
||||
|
||||
var v = {
|
||||
>v : { bar: number; }
|
||||
>{ /** * @type {number} */ get bar(): number { return this._bar; }} : { bar: number; }
|
||||
>v : { readonly bar: number; }
|
||||
>{ /** * @type {number} */ get bar(): number { return this._bar; }} : { readonly bar: number; }
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
|
|
|
@ -9,8 +9,8 @@ var a: any;
|
|||
>a : any
|
||||
|
||||
var v = {
|
||||
>v : { [0]: number; [""]: any; }
|
||||
>{ get [s]() { return 0; }, set [n](v) { }, get [s + s]() { return 0; }, set [s + n](v) { }, get [+s]() { return 0; }, set [""](v) { }, get [0]() { return 0; }, set [a](v) { }, get [<any>true]() { return 0; }, set [`hello bye`](v) { }, get [`hello ${a} bye`]() { return 0; }} : { [0]: number; [""]: any; }
|
||||
>v : { readonly [0]: number; [""]: any; }
|
||||
>{ get [s]() { return 0; }, set [n](v) { }, get [s + s]() { return 0; }, set [s + n](v) { }, get [+s]() { return 0; }, set [""](v) { }, get [0]() { return 0; }, set [a](v) { }, get [<any>true]() { return 0; }, set [`hello bye`](v) { }, get [`hello ${a} bye`]() { return 0; }} : { readonly [0]: number; [""]: any; }
|
||||
|
||||
get [s]() { return 0; },
|
||||
>s : string
|
||||
|
|
|
@ -9,8 +9,8 @@ var a: any;
|
|||
>a : any
|
||||
|
||||
var v = {
|
||||
>v : { [0]: number; [""]: any; }
|
||||
>{ get [s]() { return 0; }, set [n](v) { }, get [s + s]() { return 0; }, set [s + n](v) { }, get [+s]() { return 0; }, set [""](v) { }, get [0]() { return 0; }, set [a](v) { }, get [<any>true]() { return 0; }, set [`hello bye`](v) { }, get [`hello ${a} bye`]() { return 0; }} : { [0]: number; [""]: any; }
|
||||
>v : { readonly [0]: number; [""]: any; }
|
||||
>{ get [s]() { return 0; }, set [n](v) { }, get [s + s]() { return 0; }, set [s + n](v) { }, get [+s]() { return 0; }, set [""](v) { }, get [0]() { return 0; }, set [a](v) { }, get [<any>true]() { return 0; }, set [`hello bye`](v) { }, get [`hello ${a} bye`]() { return 0; }} : { readonly [0]: number; [""]: any; }
|
||||
|
||||
get [s]() { return 0; },
|
||||
>s : string
|
||||
|
|
|
@ -22,9 +22,9 @@ var /*2*/ x = point.x;
|
|||
|
||||
//// [declFileObjectLiteralWithOnlyGetter.d.ts]
|
||||
declare function makePoint(x: number): {
|
||||
x: number;
|
||||
readonly x: number;
|
||||
};
|
||||
declare var point: {
|
||||
x: number;
|
||||
readonly x: number;
|
||||
};
|
||||
declare var x: number;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
=== tests/cases/compiler/declFileObjectLiteralWithOnlyGetter.ts ===
|
||||
|
||||
function /*1*/makePoint(x: number) {
|
||||
>makePoint : (x: number) => { x: number; }
|
||||
>makePoint : (x: number) => { readonly x: number; }
|
||||
>x : number
|
||||
|
||||
return {
|
||||
>{ get x() { return x; }, } : { x: number; }
|
||||
>{ get x() { return x; }, } : { readonly x: number; }
|
||||
|
||||
get x() { return x; },
|
||||
>x : number
|
||||
|
@ -14,14 +14,14 @@ function /*1*/makePoint(x: number) {
|
|||
};
|
||||
};
|
||||
var /*4*/point = makePoint(2);
|
||||
>point : { x: number; }
|
||||
>makePoint(2) : { x: number; }
|
||||
>makePoint : (x: number) => { x: number; }
|
||||
>point : { readonly x: number; }
|
||||
>makePoint(2) : { readonly x: number; }
|
||||
>makePoint : (x: number) => { readonly x: number; }
|
||||
>2 : number
|
||||
|
||||
var /*2*/x = point./*3*/x;
|
||||
>x : number
|
||||
>point./*3*/x : number
|
||||
>point : { x: number; }
|
||||
>point : { readonly x: number; }
|
||||
>x : number
|
||||
|
||||
|
|
|
@ -54,8 +54,8 @@ for (let x; ;) {
|
|||
>x : any
|
||||
|
||||
({ get foo() { return x } })
|
||||
>({ get foo() { return x } }) : { foo: any; }
|
||||
>{ get foo() { return x } } : { foo: any; }
|
||||
>({ get foo() { return x } }) : { readonly foo: any; }
|
||||
>{ get foo() { return x } } : { readonly foo: any; }
|
||||
>foo : any
|
||||
>x : any
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
=== tests/cases/conformance/es6/Symbols/symbolProperty5.ts ===
|
||||
var x = {
|
||||
>x : { [Symbol.iterator]: number; [Symbol.toPrimitive](): void; [Symbol.toStringTag]: number; }
|
||||
>{ [Symbol.iterator]: 0, [Symbol.toPrimitive]() { }, get [Symbol.toStringTag]() { return 0; }} : { [Symbol.iterator]: number; [Symbol.toPrimitive](): void; [Symbol.toStringTag]: number; }
|
||||
>x : { [Symbol.iterator]: number; [Symbol.toPrimitive](): void; readonly [Symbol.toStringTag]: number; }
|
||||
>{ [Symbol.iterator]: 0, [Symbol.toPrimitive]() { }, get [Symbol.toStringTag]() { return 0; }} : { [Symbol.iterator]: number; [Symbol.toPrimitive](): void; readonly [Symbol.toStringTag]: number; }
|
||||
|
||||
[Symbol.iterator]: 0,
|
||||
>Symbol.iterator : symbol
|
||||
|
|
Loading…
Reference in a new issue