We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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?
to your account
scala> val `1 + 1` = 1 + 1
<console>:5: error: Invalid literal number
lazy val $result = 1$u0020$plus$u00201
<console>:10: error: Invalid literal number
+ "1 + 1: Int = " + scala.runtime.ScalaRunTime.replStringOf(1$u0020$plus$u00201, 1000)
<console>:13: error: ')' expected but '}' found.
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-8456?orig=1
Affected Versions: 2.11.0-RC4
Sorry, something went wrong.
This issues seems to be localized to the REPL. It works just fine if you put into a regular file and compile it.
Li Haoyi (lihaoyi) said:
This has been fixed in the Ammonite REPL.
@ val `1 + 1` = 1 + 1
`1 + 1`: Int = 2
@ `1 + 1`
res31: Int = 2
still reproducible in 2.13.2
No branches or pull requests