I am trying to get this working in Scala:
class MyClass(some: Int, func: AnyRef* => Int) {
}
The above code won't compile (why?) but the following does:
class MyClass(some: Int, func: Seq[AnyRef] => Int) {
}
That's OK but are the two equivalent? And if so, then how can I then use func
inside MyClass
?