Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing closing brace } assumed here #241

Open
goungoun opened this issue Apr 1, 2018 · 0 comments
Open

Missing closing brace } assumed here #241

goungoun opened this issue Apr 1, 2018 · 0 comments

Comments

@goungoun
Copy link

goungoun commented Apr 1, 2018

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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant