Skip to content

Crash on arbitrary elidable elements #9207

@scabug

Description

@scabug

Now that people realize LOC is not a measure of productivity, they want to eliminate as much code as possible by marking it @elidable.

The compiler should not crash and then possibly attempt something sensible.

import annotation._

class X {
  @elidable(100)
  def x() = 42
}
@elidable(500)
class Y {
  def y() = 17
}
class Z {
  @elidable(500)
  val z = 17
}

object Test extends App {
  Console println new X().x()
  Console println new Y().y()
  Console println new Z().z
}

As reported http://stackoverflow.com/questions/28923437/scala-elidable-causes-compiler-to-crash

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions