mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
869 B
Plaintext
20 lines
869 B
Plaintext
destructuringObjectBindingPatternAndAssignment4.ts(6,9): error TS2448: Block-scoped variable 'f' used before its declaration.
|
|
destructuringObjectBindingPatternAndAssignment4.ts(7,9): error TS2448: Block-scoped variable 'f' used before its declaration.
|
|
|
|
|
|
==== destructuringObjectBindingPatternAndAssignment4.ts (2 errors) ====
|
|
const {
|
|
a = 1,
|
|
b = 2,
|
|
c = b, // ok
|
|
d = a, // ok
|
|
e = f, // error
|
|
~
|
|
!!! error TS2448: Block-scoped variable 'f' used before its declaration.
|
|
!!! related TS2728 destructuringObjectBindingPatternAndAssignment4.ts:7:5: 'f' is declared here.
|
|
f = f // error
|
|
~
|
|
!!! error TS2448: Block-scoped variable 'f' used before its declaration.
|
|
!!! related TS2728 destructuringObjectBindingPatternAndAssignment4.ts:7:5: 'f' is declared here.
|
|
} = { } as any;
|
|
|