Adding the "-language postfixOps" to the compiler option does not remove warnings
Code example:
val z = "martin odersky" split " " size
This will as expected give a warning about using postfix operator in Scala 2.10.
The following will remove the warning:
import language.postfixOps
val z = "martin odersky" split " " size
Adding the "-language postfixOps" to the compiler options should also remove the warning, but doesn't.
val z = "martin odersky" split " " size
This will as expected give a warning about using postfix operator in Scala 2.10.
The following will remove the warning:
import language.postfixOps
val z = "martin odersky" split " " size
Adding the "-language postfixOps" to the compiler options should also remove the warning, but doesn't.
Leave a comment
on 2012-10-11 13:18 *
By Iulian Dragos
Actually, the settings are taken into account as soon as you re-open the project. The reason is that the build compiler is cached by Sbt. It should be invalidated as soon as project options are changed.
(In scala-ide:1523222027afaf8072dbe09780ee59b60cf7f829) Correctly update project settings when the preferences change.
The `PropertyStore` class is a snapshot, and during the move to sbt 0.13 the storage
became a lazy-val, meaning we started to lose project settings.
Fixed #1001241
Fixed #1001267
Branch: master
The `PropertyStore` class is a snapshot, and during the move to sbt 0.13 the storage
became a lazy-val, meaning we started to lose project settings.
Fixed #1001241
Fixed #1001267
Branch: master