mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
771 B
Plaintext
17 lines
771 B
Plaintext
generatorOverloads2.ts(2,13): error TS1221: Generators are not allowed in an ambient context.
|
|
generatorOverloads2.ts(3,13): error TS1221: Generators are not allowed in an ambient context.
|
|
generatorOverloads2.ts(4,13): error TS1221: Generators are not allowed in an ambient context.
|
|
|
|
|
|
==== generatorOverloads2.ts (3 errors) ====
|
|
declare namespace M {
|
|
function* f(s: string): Iterable<any>;
|
|
~
|
|
!!! error TS1221: Generators are not allowed in an ambient context.
|
|
function* f(s: number): Iterable<any>;
|
|
~
|
|
!!! error TS1221: Generators are not allowed in an ambient context.
|
|
function* f(s: any): Iterable<any>;
|
|
~
|
|
!!! error TS1221: Generators are not allowed in an ambient context.
|
|
} |