14 lines
No EOL
697 B
Text
14 lines
No EOL
697 B
Text
tests/cases/conformance/es6/yieldExpressions/generatorOverloads3.ts(2,5): error TS1222: An overload signature cannot be declared as a generator.
|
|
tests/cases/conformance/es6/yieldExpressions/generatorOverloads3.ts(3,5): error TS1222: An overload signature cannot be declared as a generator.
|
|
|
|
|
|
==== tests/cases/conformance/es6/yieldExpressions/generatorOverloads3.ts (2 errors) ====
|
|
class C {
|
|
*f(s: string): Iterable<any>;
|
|
~
|
|
!!! error TS1222: An overload signature cannot be declared as a generator.
|
|
*f(s: number): Iterable<any>;
|
|
~
|
|
!!! error TS1222: An overload signature cannot be declared as a generator.
|
|
*f(s: any): Iterable<any> { }
|
|
} |