mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
883 B
Plaintext
22 lines
883 B
Plaintext
//// [tests/cases/compiler/shorthandPropertyAssignmentNoCrash.ts] ////
|
|
|
|
=== shorthandPropertyAssignmentNoCrash.ts ===
|
|
// https://github.com/microsoft/typescript-go/issues/3789
|
|
|
|
function ff(f: any) {
|
|
>ff : Symbol(ff, Decl(shorthandPropertyAssignmentNoCrash.ts, 0, 0))
|
|
>f : Symbol(f, Decl(shorthandPropertyAssignmentNoCrash.ts, 2, 12))
|
|
|
|
let g;
|
|
>g : Symbol(g, Decl(shorthandPropertyAssignmentNoCrash.ts, 3, 7))
|
|
|
|
({ g = (x: any, y: any) => x + y } = f);
|
|
>g : Symbol(g, Decl(shorthandPropertyAssignmentNoCrash.ts, 4, 6))
|
|
>x : Symbol(x, Decl(shorthandPropertyAssignmentNoCrash.ts, 4, 12))
|
|
>y : Symbol(y, Decl(shorthandPropertyAssignmentNoCrash.ts, 4, 19))
|
|
>x : Symbol(x, Decl(shorthandPropertyAssignmentNoCrash.ts, 4, 12))
|
|
>y : Symbol(y, Decl(shorthandPropertyAssignmentNoCrash.ts, 4, 19))
|
|
>f : Symbol(f, Decl(shorthandPropertyAssignmentNoCrash.ts, 2, 12))
|
|
}
|
|
|