16 lines
No EOL
680 B
Text
16 lines
No EOL
680 B
Text
tests/cases/conformance/es6/Symbols/symbolProperty42.ts(3,12): error TS2388: Function overload must not be static.
|
|
tests/cases/conformance/es6/Symbols/symbolProperty42.ts(4,5): error TS2387: Function overload must be static.
|
|
|
|
|
|
==== tests/cases/conformance/es6/Symbols/symbolProperty42.ts (2 errors) ====
|
|
class C {
|
|
[Symbol.iterator](x: string): string;
|
|
static [Symbol.iterator](x: number): number;
|
|
~~~~~~~~~~~~~~~~~
|
|
!!! error TS2388: Function overload must not be static.
|
|
[Symbol.iterator](x: any) {
|
|
~~~~~~~~~~~~~~~~~
|
|
!!! error TS2387: Function overload must be static.
|
|
return undefined;
|
|
}
|
|
} |