mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
311 B
TypeScript
12 lines
311 B
TypeScript
//// [tests/cases/conformance/expressions/contextualTyping/functionExpressionContextualTyping3.ts] ////
|
|
|
|
//// [functionExpressionContextualTyping3.ts]
|
|
// #31114
|
|
declare function f<T>(value: T | number): void;
|
|
f((a: any) => "")
|
|
|
|
|
|
//// [functionExpressionContextualTyping3.js]
|
|
"use strict";
|
|
f((a) => "");
|