Add regression test

This commit is contained in:
Anders Hejlsberg 2018-03-17 12:23:45 -07:00
parent eab5b9f20c
commit 979bda484c

View file

@ -0,0 +1,9 @@
// @declaration: true
// Repro from #22644
const fn1 = (options: { headers?: {} }) => { };
fn1({ headers: { foo: 1 } });
const fn2 = ({ headers = {} }) => { };
fn2({ headers: { foo: 1 } });