值 YpartialUnification 不是 scala.tools.nsc.Settings 的成员
value YpartialUnification is not a member of scala.tools.nsc.Settings
我正在尝试 运行 REPL 中的 scala 猫。在 cat 的 instructions 之后,我安装了 ammonite REPL 并将以下导入放入 predef.sc
nterp.configureCompiler(_.settings.YpartialUnification.value = true)
import $ivy.`org.typelevel::cats-core:2.2.0-M1`, cats.implicits._
我在 运行 amm
时收到此错误。
predef.sc:1: value YpartialUnification is not a member of scala.tools.nsc.Settings
val res_0 = interp.configureCompiler(_.settings.YpartialUnification.value = true)
^
Compilation Failed
在 Scala 2.13 中部分统一是 enabled by default and -Ypartial-unification
flag has been removed by Partial unification unconditional; deprecate -Xexperimental #6309
Partial unification is now enabled unless -Xsource:2.12 is specified.
The -Ypartial-unification flag has been removed and the -Xexperimental
option, which is now redundant, has been deprecated.
因此编译器 no longer 接受 -Ypartial-unification
.
我正在尝试 运行 REPL 中的 scala 猫。在 cat 的 instructions 之后,我安装了 ammonite REPL 并将以下导入放入 predef.sc
nterp.configureCompiler(_.settings.YpartialUnification.value = true)
import $ivy.`org.typelevel::cats-core:2.2.0-M1`, cats.implicits._
我在 运行 amm
时收到此错误。
predef.sc:1: value YpartialUnification is not a member of scala.tools.nsc.Settings
val res_0 = interp.configureCompiler(_.settings.YpartialUnification.value = true)
^
Compilation Failed
在 Scala 2.13 中部分统一是 enabled by default and -Ypartial-unification
flag has been removed by Partial unification unconditional; deprecate -Xexperimental #6309
Partial unification is now enabled unless -Xsource:2.12 is specified. The -Ypartial-unification flag has been removed and the -Xexperimental option, which is now redundant, has been deprecated.
因此编译器 no longer 接受 -Ypartial-unification
.