11 lines
164 B
JavaScript
11 lines
164 B
JavaScript
//// [contextualTyping29.ts]
|
|
function foo(param:number[]){}; foo([1, 3]);
|
|
|
|
//// [contextualTyping29.js]
|
|
function foo(param) {
|
|
}
|
|
;
|
|
foo([
|
|
1,
|
|
3
|
|
]);
|