Skip to content

Load file in repl - eof expected but '}' found #1552

Closed
@dos65

Description

@dos65

The example below failed with <console>:8: error: eof expected but '}' found;}^

def foo(): String = { 
  "foo" 
}

class B {

}

But when i place braces in one line - it's work

def foo(): String = { "foo" }

class B {}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions