Closed
Description
trait Index
object Index {
inline def succ(prev: Index): Unit = ~{ '(println("Ok")) }
}
object Test {
def main(args: Array[String]): Unit = {
Index.succ(null)
}
}
fails with
3 | Index.succ(null)
| ^^^^^^^^^^^^^^^^
|Could not find interpreted method Index.succ with parameters List(interface Index)