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

GenBCode crashes after inlining Option.getOrElse #9376

Closed
scabug opened this Issue Jul 2, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@scabug
Copy link

scabug commented Jul 2, 2015

class C {
  def f(o: Option[C]) = o.getOrElse(throw new NoSuchElementException(""))
}

with latest 2.12.x

➜  sandbox git:(yoptInScala) qsc -Yopt:l:classpath Test.scala
java.lang.AssertionError: assertion failed: jvmWiseLUB for null or nothing: Lscala/runtime/Nothing$; - Ljava/lang/Object;
	at scala.Predef$.assert(Predef.scala:165)
	at scala.tools.nsc.backend.jvm.BTypes$ClassBType.jvmWiseLUB(BTypes.scala:945)
	at scala.tools.nsc.backend.jvm.BCodeHelpers$CClassWriter.getCommonSuperClass(BCodeHelpers.scala:71)
	at scala.tools.asm.ClassWriter.getMergedType(ClassWriter.java:1654)
@scabug

This comment has been minimized.

Copy link

scabug commented Jul 2, 2015

@scabug

This comment has been minimized.

Copy link

scabug commented Jul 3, 2015

@scabug scabug closed this Jul 8, 2015

@scabug scabug added the blocker label Apr 7, 2017

@scabug scabug added this to the 2.12.0-M2 milestone Apr 7, 2017

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