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

parser bug with import in block #4760

Closed
scabug opened this issue Jul 3, 2011 · 4 comments
Closed

parser bug with import in block #4760

scabug opened this issue Jul 3, 2011 · 4 comments

Comments

@scabug
Copy link

@scabug scabug commented Jul 3, 2011

object Test {
  // parses
  def f1 = {
    import scala._;
  }
  // b.scala:7: error: ';' expected but '}' found.
  //   }
  //   ^
  // one error found
  def f2 = {
    import scala._
  }
  
  // parses
  def f3 = {
    import scala._
    5
  }
}
@scabug
Copy link
Author

@scabug scabug commented Jul 3, 2011

@scabug
Copy link
Author

@scabug scabug commented Aug 2, 2011

@paulp said:
See also #4785, which may or may not be the same bug.

@scabug
Copy link
Author

@scabug scabug commented May 16, 2013

@JamesIry said:
Still reproducible in 2.10.x

@scabug
Copy link
Author

@scabug scabug commented Aug 30, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants