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

Error when formatting #237

Open
jrlemieux opened this issue Dec 8, 2016 · 0 comments
Open

Error when formatting #237

jrlemieux opened this issue Dec 8, 2016 · 0 comments

Comments

@jrlemieux
Copy link

This little test case shows the problem:

class B {
  def xyz[T](v: Option[T]) =
    this
}

object Demo {
  (new B) xyz[Int] Some (100)
       def toto = 0
}

When formatting this code, this error is triggered:
Scalariform parser error for /home/jacques/Documents/Projects/ActorDemo/app/com/coremigration/restless/dd/roror.scala: Expected token SEMI but got Token(LBRACKET,[,119,[)

If I write the code this way, it works ok.

class B {
  def xyz[T](v: Option[T]) =
    this
}

object Demo {
  (new B).xyz[Int](Some(100))
  def toto = 0
}

I am using the configuration described at https://github.com/sbt/sbt-scalariform:
addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.6.0")

Thank you.

Jacques

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