mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
accept baseline
This commit is contained in:
1 parent
1d114e67a2
commit
4abcfa173a
4 files changed
+6
-6
No files matched your search
@@ -1,10 +1,10 @@
|
||||
tests/cases/compiler/renamingDestructuredPropertyInFunctionType.ts(1,15): error TS2797: Renaming a property in destructuring assignment is only allowed in a function or constructor implementation.
|
||||
tests/cases/compiler/renamingDestructuredPropertyInFunctionType.ts(1,15): error TS2842: Renaming a property in destructuring assignment is only allowed in a function or constructor implementation.
|
||||
|
||||
|
||||
==== tests/cases/compiler/renamingDestructuredPropertyInFunctionType.ts (1 errors) ====
|
||||
type F = ({a: string}) => void;
|
||||
~~~~~~
|
||||
!!! error TS2797: Renaming a property in destructuring assignment is only allowed in a function or constructor implementation.
|
||||
!!! error TS2842: Renaming a property in destructuring assignment is only allowed in a function or constructor implementation.
|
||||
|
||||
const f = ({a: string}) => string;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/renamingDestructuredPropertyInFunctionType.ts ===
|
||||
type F = ({a: string}) => void;
|
||||
>F : F
|
||||
>F : ({ a }: { a: any; }) => void
|
||||
>a : any
|
||||
>string : any
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
tests/cases/compiler/renamingDestructuredPropertyInFunctionType2.ts(1,15): error TS2797: Renaming a property in destructuring assignment is only allowed in a function or constructor implementation.
|
||||
tests/cases/compiler/renamingDestructuredPropertyInFunctionType2.ts(1,15): error TS2842: Renaming a property in destructuring assignment is only allowed in a function or constructor implementation.
|
||||
tests/cases/compiler/renamingDestructuredPropertyInFunctionType2.ts(3,16): error TS7031: Binding element 'string' implicitly has an 'any' type.
|
||||
|
||||
|
||||
==== tests/cases/compiler/renamingDestructuredPropertyInFunctionType2.ts (2 errors) ====
|
||||
type F = ({a: string}) => void;
|
||||
~~~~~~
|
||||
!!! error TS2797: Renaming a property in destructuring assignment is only allowed in a function or constructor implementation.
|
||||
!!! error TS2842: Renaming a property in destructuring assignment is only allowed in a function or constructor implementation.
|
||||
|
||||
const f = ({a: string}) => string;
|
||||
~~~~~~
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/renamingDestructuredPropertyInFunctionType2.ts ===
|
||||
type F = ({a: string}) => void;
|
||||
>F : F
|
||||
>F : ({ a }: { a: any; }) => void
|
||||
>a : any
|
||||
>string : any
|
||||
|
||||
|
||||
Reference in new issue
Block a user