- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Assertion failling in GenICode only with -Ydebug
Fri, 2010-01-15, 12:12
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.
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
>