add #1168 regression test

This commit is contained in:
Sebastian McKenzie 2015-04-06 06:20:05 -07:00
parent 87ce4b9cd8
commit afd95cf663
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,3 @@
function test(x: string = "hi"): string {
return x;
}

View File

@ -0,0 +1,7 @@
"use strict";
function test() {
var x = arguments[0] === undefined ? "hi" : arguments[0];
return x;
}