9 lines
145 B
JavaScript
9 lines
145 B
JavaScript
|
//// [contextualTyping28.ts]
|
||
|
function foo(param:number[]){}; foo([1]);
|
||
|
|
||
|
//// [contextualTyping28.js]
|
||
|
function foo(param) {
|
||
|
}
|
||
|
;
|
||
|
foo([1]);
|