mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
530 B
TypeScript
19 lines
530 B
TypeScript
//// [tests/cases/conformance/controlFlow/dependentDestructuredVariablesNoCrash1.ts] ////
|
|
|
|
//// [dependentDestructuredVariablesNoCrash1.ts]
|
|
// https://github.com/microsoft/TypeScript/issues/63044
|
|
|
|
function f()
|
|
|
|
function f([first, undefined]?: () => any = undefined) {}
|
|
|
|
|
|
//// [dependentDestructuredVariablesNoCrash1.js]
|
|
"use strict";
|
|
// https://github.com/microsoft/TypeScript/issues/63044
|
|
function f([first, undefined] = undefined) { }
|
|
|
|
|
|
//// [dependentDestructuredVariablesNoCrash1.d.ts]
|
|
declare function f(): any;
|