4 lines
100 B
TypeScript
4 lines
100 B
TypeScript
|
function foo1(val: string) {
|
||
|
}
|
||
|
function foo3(x = foo1(123)) { //should error, 123 is not string
|
||
|
}
|