Files

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> { }
}