accept baseline

This commit is contained in:
uhyo committed 2022-06-08 21:21:27 +09:00
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