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

Syntax error after instrumentation when using semicolon #209

Open
dragos opened this issue Dec 11, 2014 · 0 comments
Open

Syntax error after instrumentation when using semicolon #209

dragos opened this issue Dec 11, 2014 · 0 comments

Comments

@dragos
Copy link
Member

dragos commented Dec 11, 2014

Typing a (useless) semicolon causes invalid instrumented code:

object fooMa {
  def foo = "abc";

  foo
}

generates

object fooMa {;import org.scalaide.worksheet.runtime.library.WorksheetSupport._; def main(args: Array[String])=$execute{;$skip(49); 
  def foo = "abc";System.out.println("""foo: => String""");$skip(9); val res$0 = ;

  foo;System.out.println("""res0: String = """ + $show(res$0))}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant