Closed
Description
cc @Andy-MS
TypeScript Version: 2.7.0-dev.20171223
Code
const [, a = ''] = ''.match('') || [];
Expected behavior:
a
is string.
Actual behavior:
a
is any.
cc @Andy-MS
TypeScript Version: 2.7.0-dev.20171223
Code
const [, a = ''] = ''.match('') || [];
Expected behavior:
a
is string.
Actual behavior:
a
is any.