Dear all,
In a class X of mine, I'd like to have two overloads of a method f like
class X {
class Y(X, I)
def f(is: I*) = Y(this, is: _*)
def f(vs: V*) = Y(this, (for(v <- vs) yield v.x): _*) //line 53
}
but, the compiler emits
double definition: method f:(vs: V*)X.this.Y and method f:(is:
I*)X.this.Y at line 53 have same type after erasure: (vs: Seq)
The error message is clear enough for me to understand what's going
on. Is there any hope, though, that I can rescue my code from the
nasty type-erasure occurring here?
TIA,
--Hossein
--------------------------------------------------------------------------------------------------------------
Seyed H. HAERI (Hossein)
Research Assistant
Institute for Software Systems (STS)
Technical University of Hamburg (TUHH)
Hamburg, Germany
ACCU - Professionalism in programming -
http://www.accu.org/
--------------------------------------------------------------------------------------------------------------