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

(-1).to(10) doesn't work in Scala IDE 4.0 worksheet #210

Open
cayhorstmann opened this issue Dec 19, 2014 · 0 comments
Open

(-1).to(10) doesn't work in Scala IDE 4.0 worksheet #210

cayhorstmann opened this issue Dec 19, 2014 · 0 comments

Comments

@cayhorstmann
Copy link

Making a worksheet

object Fred {
  (-1).to(10)
}

fails with no visible error message and yields this in .worksheet/src:

object Fred {
(-;import org.scalaide.worksheet.runtime.library.WorksheetSupport._; def main(args: Array[String])=$execute{;$skip(26); val res$0 = 1).to(10);System.out.println("""res0: scala.collection.immutable.Range.Inclusive = """ + $show(res$0))}
}

Also, -1.to(10) doesn't work. Both should.

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