class C { f(a: T, b?: T, ...c: T[]): T {} [Symbol.iterator](): T {} }