TypeScript/tests/cases/compiler/invocationExpressionInFunctionParameter.ts
2014-07-12 17:30:19 -07:00

4 lines
100 B
TypeScript

function foo1(val: string) {
}
function foo3(x = foo1(123)) { //should error, 123 is not string
}