Skip to content

Fail to find macro method when parameter is interface #4492

Closed
@nicolasstucki

Description

@nicolasstucki
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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions