TypeScript/tests/cases/compiler/invocationExpressionInFunctionParameter.ts

4 lines
100 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
function foo1(val: string) {
}
function foo3(x = foo1(123)) { //should error, 123 is not string
}