Skip to content

REPL crash on typeless method definitions #2213

Closed
@propensive

Description

@propensive

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions