相关疑难解决方法(0)

Scala Postfix运算符警告与Scaladoc相矛盾

我的代码: val exitStatus = url #> outfile !

scala.sys.process: new URL("http://www.scala-lang.org/") #> new File("scala-lang.html") !

警告:

postfix operator ! should be enabled
[warn] by making the implicit value scala.language.postfixOps visible.
[warn] This can be achieved by adding the import clause 'import scala.language.postfixOps'
[warn] or by setting the compiler option -language:postfixOps.
[warn] See the Scaladoc for value scala.language.postfixOps for a discussion
[warn] why the feature should be explicitly enabled.
[warn]     val exitStatus = url #> outfile !
[warn]                                     ^
[warn] …
Run Code Online (Sandbox Code Playgroud)

scala postfix-notation deprecation-warning

1
推荐指数
1
解决办法
2471
查看次数