mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
790 B
Plaintext
15 lines
790 B
Plaintext
//// [tests/cases/conformance/controlFlow/dependentDestructuredVariablesNoCrash1.ts] ////
|
|
|
|
=== dependentDestructuredVariablesNoCrash1.ts ===
|
|
// https://github.com/microsoft/TypeScript/issues/63044
|
|
|
|
function f()
|
|
>f : Symbol(f, Decl(dependentDestructuredVariablesNoCrash1.ts, 0, 0), Decl(dependentDestructuredVariablesNoCrash1.ts, 2, 12))
|
|
|
|
function f([first, undefined]?: () => any = undefined) {}
|
|
>f : Symbol(f, Decl(dependentDestructuredVariablesNoCrash1.ts, 0, 0), Decl(dependentDestructuredVariablesNoCrash1.ts, 2, 12))
|
|
>first : Symbol(first, Decl(dependentDestructuredVariablesNoCrash1.ts, 4, 12))
|
|
>undefined : Symbol(undefined, Decl(dependentDestructuredVariablesNoCrash1.ts, 4, 18))
|
|
>undefined : Symbol(undefined, Decl(dependentDestructuredVariablesNoCrash1.ts, 4, 18))
|
|
|