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
{{ message }}
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.
Running def foo0[F <: AnyKind]: F = null.asInstanceOf[F] with the option -Ykind-polymorphism results in this runtime error :
[error] (run-main-1) java.lang.NoClassDefFoundError: scala/AnyKind
java.lang.NoClassDefFoundError: scala/AnyKind
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
Caused by: java.lang.ClassNotFoundException: scala.AnyKind
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
Bumped into this exception whilst running this example from the TLS project
Running
def foo0[F <: AnyKind]: F = null.asInstanceOf[F]
with the option-Ykind-polymorphism
results in this runtime error :Bumped into this exception whilst running this example from the TLS project
Full reproducible example here
The text was updated successfully, but these errors were encountered: