mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-11 01:34:55 -06:00
Accept new baselines
This commit is contained in:
parent
dbeb68274f
commit
787c323990
@ -1,37 +0,0 @@
|
||||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression6.ts(2,23): error TS2300: Duplicate identifier '(Missing)'.
|
||||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression6.ts(2,24): error TS1005: ',' expected.
|
||||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression6.ts(2,29): error TS1138: Parameter declaration expected.
|
||||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression6.ts(2,30): error TS2300: Duplicate identifier '(Missing)'.
|
||||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression6.ts(2,31): error TS1003: Identifier expected.
|
||||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression6.ts(2,40): error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value.
|
||||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression6.ts(2,41): error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
|
||||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression6.ts(2,55): error TS1138: Parameter declaration expected.
|
||||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression6.ts(2,66): error TS1005: '=>' expected.
|
||||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression6.ts(2,69): error TS1005: ':' expected.
|
||||
|
||||
|
||||
==== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression6.ts (10 errors) ====
|
||||
function foo(q: string, b: number) {
|
||||
return true ? (q ? true : false) : (b = q.length, function() { });
|
||||
|
||||
!!! error TS2300: Duplicate identifier '(Missing)'.
|
||||
~~~~
|
||||
!!! error TS1005: ',' expected.
|
||||
~
|
||||
!!! error TS1138: Parameter declaration expected.
|
||||
|
||||
!!! error TS2300: Duplicate identifier '(Missing)'.
|
||||
~~~~~
|
||||
!!! error TS1003: Identifier expected.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value.
|
||||
~~~~~~~~~~~~
|
||||
!!! error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
|
||||
~~~~~~~~
|
||||
!!! error TS1138: Parameter declaration expected.
|
||||
~
|
||||
!!! error TS1005: '=>' expected.
|
||||
~
|
||||
!!! error TS1005: ':' expected.
|
||||
};
|
||||
|
||||
@ -6,7 +6,6 @@ function foo(q: string, b: number) {
|
||||
|
||||
//// [parserArrowFunctionExpression6.js]
|
||||
function foo(q, b) {
|
||||
return true ? function (q, , ) { } : ;
|
||||
;
|
||||
return true ? (q ? true : false) : (b = q.length, function () { });
|
||||
}
|
||||
;
|
||||
|
||||
@ -5,11 +5,11 @@ function foo(q: string, b: number) {
|
||||
>b : Symbol(b, Decl(parserArrowFunctionExpression6.ts, 0, 23))
|
||||
|
||||
return true ? (q ? true : false) : (b = q.length, function() { });
|
||||
>q : Symbol(q, Decl(parserArrowFunctionExpression6.ts, 1, 19))
|
||||
> : Symbol((Missing), Decl(parserArrowFunctionExpression6.ts, 1, 22))
|
||||
> : Symbol((Missing), Decl(parserArrowFunctionExpression6.ts, 1, 29))
|
||||
>b : Symbol(b, Decl(parserArrowFunctionExpression6.ts, 1, 40))
|
||||
>q : Symbol(q, Decl(parserArrowFunctionExpression6.ts, 1, 19))
|
||||
>q : Symbol(q, Decl(parserArrowFunctionExpression6.ts, 0, 13))
|
||||
>b : Symbol(b, Decl(parserArrowFunctionExpression6.ts, 0, 23))
|
||||
>q.length : Symbol(String.length, Decl(lib.d.ts, --, --))
|
||||
>q : Symbol(q, Decl(parserArrowFunctionExpression6.ts, 0, 13))
|
||||
>length : Symbol(String.length, Decl(lib.d.ts, --, --))
|
||||
|
||||
};
|
||||
|
||||
|
||||
@ -1,21 +1,25 @@
|
||||
=== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression6.ts ===
|
||||
function foo(q: string, b: number) {
|
||||
>foo : (q: string, b: number) => any
|
||||
>foo : (q: string, b: number) => boolean | (() => void)
|
||||
>q : string
|
||||
>b : number
|
||||
|
||||
return true ? (q ? true : false) : (b = q.length, function() { });
|
||||
>true ? (q ? true : false) : (b = q.length, function() { } : any
|
||||
>true ? (q ? true : false) : (b = q.length, function() { }) : boolean | (() => void)
|
||||
>true : true
|
||||
>(q ? true : false) : (b = q.length, function() { } : (q?: any, : any, : any) => (b?: any) => () => any
|
||||
>q : any
|
||||
> : any
|
||||
> : any
|
||||
>b : any
|
||||
>q.length : any
|
||||
>q : any
|
||||
>length : any
|
||||
> : any
|
||||
>(q ? true : false) : boolean
|
||||
>q ? true : false : boolean
|
||||
>q : string
|
||||
>true : true
|
||||
>false : false
|
||||
>(b = q.length, function() { }) : () => void
|
||||
>b = q.length, function() { } : () => void
|
||||
>b = q.length : number
|
||||
>b : number
|
||||
>q.length : number
|
||||
>q : string
|
||||
>length : number
|
||||
>function() { } : () => void
|
||||
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user