We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
object bug2 { //works: val id: [U] => U => U = [U] => (none: U) => none //fails to parse: val id2: [U] => U => U = [U] => (none: U) => none }
id2 parses correctly.
id2
With version 0.20.0-RC1:
[info] Compiling 1 Scala source to /Users/pgiarrusso/git/Coq/silr-dot/code/target/scala-0.20/classes ... [error] -- [E103] Syntax Error: /Users/pgiarrusso/git/Coq/silr-dot/code/Bug2.scala:7:4 - [error] 7 | [U] => (none: U) => none [error] | ^ [error] | Illegal start of statement [error] one error found [error] (Compile / compileIncremental) Compilation failed [error] Total time: 0 s, completed Dec 1, 2019 4:00:04 PM
Ditto with sbt repl on master (eeb092524530c14dc3a110b38179e24f3c208776):
sbt repl
eeb092524530c14dc3a110b38179e24f3c208776
scala> val id: [U] => U => U = | [U] => (none: U) => none 2 | [U] => (none: U) => none | ^ | Illegal start of statement
The text was updated successfully, but these errors were encountered:
It also fails if the function is put in braces:
3 | val id: [U] => U => U = { [U] => (none: U) => none } | ^ | Illegal start of statement
Sorry, something went wrong.
Fix scala#7655: [ can start an expression
[
17d2faa
011321e
Merge pull request #7656 from dotty-staging/fix-#7655
3cc436a
Fix #7655: `[` can start an expression
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
minimized code
expectation
id2
parses correctly.actual
With version 0.20.0-RC1:
Ditto with
sbt repl
on master (eeb092524530c14dc3a110b38179e24f3c208776
):The text was updated successfully, but these errors were encountered: