11 lines
168 B
JavaScript
11 lines
168 B
JavaScript
//// [contextualTyping30.ts]
|
|
function foo(param:number[]){}; foo([1, "a"]);
|
|
|
|
//// [contextualTyping30.js]
|
|
function foo(param) {
|
|
}
|
|
;
|
|
foo([
|
|
1,
|
|
"a"
|
|
]);
|