我有以下java代码:
interface J {
void f(int... a);
void f(String... a);
}
如何在scala中覆盖它?
我使用以下代码收到错误double definition: method ... and ... have same type after erasure: (a: Seq)Unit
:
class S extends J {
def f(a: Int*) {}
def f(a: String*) {}
}