15 lines
302 B
TypeScript
15 lines
302 B
TypeScript
//// [symbolProperty42.ts]
|
|
class C {
|
|
[Symbol.iterator](x: string): string;
|
|
static [Symbol.iterator](x: number): number;
|
|
[Symbol.iterator](x: any) {
|
|
return undefined;
|
|
}
|
|
}
|
|
|
|
//// [symbolProperty42.js]
|
|
class C {
|
|
[Symbol.iterator](x) {
|
|
return undefined;
|
|
}
|
|
}
|