Skip to content

Ambiguous overload for var-arg overloaded method. #547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DarkDimius opened this issue May 8, 2015 · 0 comments
Closed

Ambiguous overload for var-arg overloaded method. #547

DarkDimius opened this issue May 8, 2015 · 0 comments

Comments

@DarkDimius
Copy link
Contributor

./src/dotty/runtime/Arrays.scala:18: error: Ambiguous overload. The overloaded alternatives of method newInstance in object Array$ with types
 (x$0: Class[_], x$1: Int)Object
 (x$0: Class[_], x$1: Int*)Object
both match arguments (Class[_](clazz), => Int(xs.length))
    val arr = java.lang.reflect.Array.newInstance(clazz, xs.length).asInstanceOf[Array[T]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant