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