Java code to scala code error
code in java like
class B< T extends Base >{
B(T ... data){
}
}
A[] arr = {a1,a2 ...}; // A extends Base
new B(arr)
When translate `new B(arr)` to scala.
It will create code like `new B[_ <: Base](arr)`
However it should be `new B[_ <: Base](arr:_*)` becuase B's constructor is defined as `B(T ... data){}`
Please sign in to leave a comment.