Closed
Description
The following is sufficient to cause the REPL to crash with an ArrayIndexOutOfBoundsException
:
scala> def x
Including an additional space character at the end gives the expected error message, and hence changing code
to (code+" ")
on this line seems to fix the problem, but it seems like there should be a less hacky fix.
Full output from the above example is here.