mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
9 lines
254 B
TypeScript
9 lines
254 B
TypeScript
//// [tests/cases/compiler/contextualTyping41.ts] ////
|
|
|
|
//// [contextualTyping41.ts]
|
|
var foo = <{():number; (i:number):number; }> (function(){return "err";});
|
|
|
|
//// [contextualTyping41.js]
|
|
"use strict";
|
|
var foo = (function () { return "err"; });
|