You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
This little test case shows the problem:
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.
I am using the configuration described at https://github.com/sbt/sbt-scalariform:
addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.6.0")
Thank you.
Jacques
The text was updated successfully, but these errors were encountered: