mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
611 B
Plaintext
14 lines
611 B
Plaintext
generatorOverloads1.ts(2,13): error TS1222: An overload signature cannot be declared as a generator.
|
|
generatorOverloads1.ts(3,13): error TS1222: An overload signature cannot be declared as a generator.
|
|
|
|
|
|
==== generatorOverloads1.ts (2 errors) ====
|
|
namespace M {
|
|
function* f(s: string): Iterable<any>;
|
|
~
|
|
!!! error TS1222: An overload signature cannot be declared as a generator.
|
|
function* f(s: number): Iterable<any>;
|
|
~
|
|
!!! error TS1222: An overload signature cannot be declared as a generator.
|
|
function* f(s: any): Iterable<any> { }
|
|
} |