我使用"console-project"命令从sbt启动了这个shell.
scala> settings
<console>:24: error: reference to settings is ambiguous;
it is imported twice in the same scope by
import Keys._
and import settings
settings
^
Run Code Online (Sandbox Code Playgroud)
如何让shell显示设置对象,而不是Keys.settings?
Jan*_*rst 10
假设您导入Keys._和settings自己,你可以重命名settings的Keys,像这样:
import Keys.{settings => keySettings, _}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4311 次 |
| 最近记录: |