mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
377 B
TypeScript
16 lines
377 B
TypeScript
//// [tests/cases/conformance/es6/yieldExpressions/generatorOverloads1.ts] ////
|
|
|
|
//// [generatorOverloads1.ts]
|
|
namespace M {
|
|
function* f(s: string): Iterable<any>;
|
|
function* f(s: number): Iterable<any>;
|
|
function* f(s: any): Iterable<any> { }
|
|
}
|
|
|
|
//// [generatorOverloads1.js]
|
|
"use strict";
|
|
var M;
|
|
(function (M) {
|
|
function* f(s) { }
|
|
})(M || (M = {}));
|