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