blob: 33d33f10a29f254d1edc523913198eb0149e3c20 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
object A {
def unapply(n: Int): Option[Int] = Some(1)
}
object Test extends dotty.runtime.LegacyApp {
import reflect.runtime.universe._
println(reify {
val A(x) = (0: Short)
x
})
}
|