9 lines
165 B
JavaScript
9 lines
165 B
JavaScript
|
//// [contextualTyping26.ts]
|
||
|
function foo(param:{id:number;}){}; foo(<{id:number;}>({}));
|
||
|
|
||
|
//// [contextualTyping26.js]
|
||
|
function foo(param) {
|
||
|
}
|
||
|
;
|
||
|
foo(({}));
|