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
I try write this:
type T = {
but get an error:
SyntaxError: found "{", expected NamedType ~ Refinement.? | Refinement at index 9 type T = { ^
If i use scala REPL, all works fine:
scala> type T = { | type X = Int | def x: X | type Y | def y: Y | } defined type alias T
The text was updated successfully, but these errors were encountered:
Looks like a bug in ScalaParse where it's not properly inserting a ~/ cut after the open-curly after a type declaration:
~/
https://github.com/lihaoyi/fastparse/blob/master/scalaparse/shared/src/main/scala/scalaparse/Types.scala#L32
The second ~ on that line should be a ~/ to make this behave correctly.
~
Sorry, something went wrong.
com-lihaoyi/fastparse@fe16537
This is fixed in master
- Scalaparse 0.3.5 to fix #343
7a25bc7
- Wrap long line in `TermCore.scala` to make tests pass - Piles of comments in `Ansi.scala`
No branches or pull requests
I try write this:
but get an error:
If i use scala REPL, all works fine:
The text was updated successfully, but these errors were encountered: