Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on arbitrary elidable elements #9207

Closed
scabug opened this issue Mar 8, 2015 · 3 comments
Closed

Crash on arbitrary elidable elements #9207

scabug opened this issue Mar 8, 2015 · 3 comments

Comments

@scabug
Copy link

scabug commented Mar 8, 2015

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

@scabug
Copy link
Author

scabug commented Mar 8, 2015

Imported From: https://issues.scala-lang.org/browse/SI-9207?orig=1
Reporter: @som-snytt
Affected Versions: 2.11.6
Duplicates #10068

@scabug
Copy link
Author

scabug commented Feb 14, 2017

@som-snytt said:
I missed the chance to use the punning test name FürElide. That's punning on the Beethoven tune the kids play.

@scabug scabug closed this as completed Feb 14, 2017
@scabug
Copy link
Author

scabug commented Feb 14, 2017

@SethTisue said:
"elide", isn't that what Joe Wilson shouted at Obama?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant