You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--Error: jlist.scala ------------------------------------------------------5| x.asInstanceOf[java.util.List[_]].asScala.toList
|^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^| unsafe instantiation of type=>| scala.collection.immutable.List[
| java.util.List'[_] @UnsafeNonvariant#java$util$List$$E| ]
| (?1.toList)where: List is a classinpackageimmutable|List' is a trait in package util
@odersky Could you explain why this happens exactly? Is this something that we can fix? Otherwise, we should try to give a better error message to the user, this one does not help you fix the problem. Ideally, the compiler would tell you to do the rewriting above.