swc/crates/swc_ecma_parser/tests/tsc/generatorOverloads1.ts

6 lines
156 B
TypeScript
Raw Normal View History

//@target: ES6
module M {
function* f(s: string): Iterable<any>;
function* f(s: number): Iterable<any>;
function* f(s: any): Iterable<any> { }
}