Skip to content

Crash when selecting ! on block #5386

Closed
@biboudis

Description

@biboudis
object Test {
  inline def assert(assertion: => Boolean): Boolean = !assertion

  def test = assert({println("Boom");true})
}
java.lang.AssertionError: NoDenotation.owner while compiling tests/run-separate-compilation/gestalt-innerclassmacro-inline/InnerClassMacro_1.scala
Exception in thread "main" java.lang.AssertionError: NoDenotation.owner
	at dotty.tools.dotc.core.SymDenotations$NoDenotation$.owner(SymDenotations.scala:1931)
	at dotty.tools.dotc.transform.Erasure$Typer.mapOwner$1(Erasure.scala:408)
	at dotty.tools.dotc.transform.Erasure$Typer.typedSelect(Erasure.scala:412)
	at dotty.tools.dotc.typer.Typer.typedNamed$1(Typer.scala:1863)
	at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:1936)
	at dotty.tools.dotc.typer.ReTyper.typedUnadapted(ReTyper.scala:110)
	at dotty.tools.dotc.typer.Typer.$anonfun$typed$2(Typer.scala:1968)
	at dotty.tools.dotc.reporting.trace$.apply(trace.scala:40)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions