Default parameters should subtract undefined
from internal function signature
#12726
Milestone
undefined
from internal function signature
#12726
TypeScript Version: 2.1.4
Code
Expected behavior: No error.
Actual behavior:
I believe this has actually been an issue in previous releases, but 2.1 has made it apparent in other argument positions. I just tested 2.0 and can reproduce the above sample, but it doesn't fail on 2.0 with
(x: string, y = 0)
whereas 2.1 does.The text was updated successfully, but these errors were encountered: