mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
@@ -2,7 +2,7 @@
|
||||
// @noEmit: true
|
||||
// @lib: es2015
|
||||
|
||||
// repro from #52588
|
||||
// See: https://github.com/microsoft/TypeScript/pull/53280#discussion_r1138684984
|
||||
|
||||
declare function test(
|
||||
arg: Record<string, (arg: string) => void> | Array<(arg: number) => void>
|
||||
@@ -2,7 +2,7 @@
|
||||
// @noEmit: true
|
||||
// @lib: es5
|
||||
|
||||
// repro from #52588
|
||||
// See: https://github.com/microsoft/TypeScript/pull/53280#discussion_r1138684984
|
||||
|
||||
declare function test(
|
||||
arg: Record<string, (arg: string) => void> | Array<(arg: number) => void>
|
||||
@@ -1,5 +1,7 @@
|
||||
// @lib: es2015
|
||||
|
||||
function f<T extends { "0": (p1: number) => number }>(p: T): T {
|
||||
return p;
|
||||
}
|
||||
|
||||
var v = f([x => x]);
|
||||
var v = f([x => x]);
|
||||
|
||||
Reference in New Issue
Block a user