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
Welcome to Scala 3.5.1 (22.0.2, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
scala> class A { class B }
// defined class A
scala> def f(using a: A): a.type = { println("f"); a }
def f(using a: A): a.type
scala> given a[X]: A = new A
def a[X]: A
scala> new f.B
java.lang.AssertionError: assertion failed: val <none>
at scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8)
at dotty.tools.backend.jvm.BCodeHelpers$BCInnerClassGen.assertClassNotArray(BCodeHelpers.scala:151)
at dotty.tools.backend.jvm.BCodeHelpers$BCInnerClassGen.assertClassNotArrayNotPrimitive(BCodeHelpers.scala:156)
at dotty.tools.backend.jvm.BCodeHelpers$BCInnerClassGen.getClassBType(BCodeHelpers.scala:174)
3.5.1
Via https://discord.com/channels/632150470000902164/632628489719382036/1296041645900562455
In the quotes API it's a
transparent inline def
: https://github.com/scala/scala3/blob/3.5.1/library/src/scala/quoted/Quotes.scala#L18.@sjrd said
which makes sense; is it specced?
The text was updated successfully, but these errors were encountered: