Guest User

Untitled

a guest
Apr 23rd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. short form
  2. def toArray(arg0:Array[_]) : Array[_] = {
  3. new Array[_](0)
  4. }
  5. results in:
  6. class AllUsers needs to be abstract, since method toArray in trait Collection of type [T](Array[T])Array[T] is not defined
  7.  
  8. or my best guess at a long form:
  9. def toArray(arg0:Array[X] forSome {type X}) : Array[X] = {
  10. new Array[X](0)
  11. }
  12. results in
  13. not found: type X
  14. not found: type X
Add Comment
Please, Sign In to add comment