mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
237 B
TypeScript
11 lines
237 B
TypeScript
//// [tests/cases/compiler/contextualTyping27.ts] ////
|
|
|
|
//// [contextualTyping27.ts]
|
|
function foo(param:{id:number;}){}; foo(<{id:number;}>({}));
|
|
|
|
//// [contextualTyping27.js]
|
|
"use strict";
|
|
function foo(param) { }
|
|
;
|
|
foo(({}));
|