scala-ide / scala-worksheet

A Scala IDE plugin for a multi-line REPL (called worksheet)
96 stars 24 forks source link

Missing closing brace `}` assumed here #241

Open goungoun opened 6 years ago

goungoun commented 6 years ago

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
}