This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Assertion failling in GenICode only with -Ydebug

1 reply
Johannes Rudolph
Joined: 2008-12-17,
User offline. Last seen 29 weeks 20 hours ago.

What's that?

Exception in thread "main" java.lang.AssertionError: assertion failed:
I produce UNIT in a context where REFERENCE(java.lang.Object) is
expected!

From GenICode.scala:

assert(!settings.debug.value || !(hasUnitBranch && expectedType != UNIT),
"I produce UNIT in a context where " + expectedType + " is expected!")

Without -Ydebug everything is working.

Johannes Rudolph
Joined: 2008-12-17,
User offline. Last seen 29 weeks 20 hours ago.
Re: Assertion failling in GenICode only with -Ydebug

Never mind, I found out that it was fixed in [20468].

On Fri, Jan 15, 2010 at 12:12 PM, Johannes Rudolph
wrote:
> What's that?
>
> Exception in thread "main" java.lang.AssertionError: assertion failed:
> I produce UNIT in a context where REFERENCE(java.lang.Object) is
> expected!
>
> From GenICode.scala:
>
>  assert(!settings.debug.value || !(hasUnitBranch && expectedType != UNIT),
>        "I produce UNIT in a context where " + expectedType + " is expected!")
>
> Without -Ydebug everything is working.
>
> --
> Johannes
>
> -----------------------------------------------
> Johannes Rudolph
> http://virtual-void.net
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland