Skip to content

Missing closing brace } assumed here #241

Open
@goungoun

Description

@goungoun

Error : Missing closing brace } assumed here

object CheetSheet {
  println("Welcome to the Scala worksheet")
  
  def example = 2 // evaluated when called
  val example2 = 2 // evaluated immediatly
  lazy val example3 = 2 //evaluated once when needed 
}

The error message above disappears when the last comment goes to the next line like this:

object CheetSheet {
  println("Welcome to the Scala worksheet")
  
  def example = 2 // evaluated when called
  val example2 = 2 // evaluated immediatly
  lazy val example3 = 2 
  //evaluated once when needed
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions