How turn off/on typer phase in scala repl and sbt console

谁说我不能喝 提交于 2019-12-21 04:27:28

问题


Is it possible to switch phase without exiting from current session? I've tried entering :power mode, but it still doesn't print types.


回答1:


In SBT just add the following setting:

set scalacOptions in (Compile, console) := "-Xprint:typer"

in REPL you can use :settings -Xprint:typer



来源:https://stackoverflow.com/questions/22354102/how-turn-off-on-typer-phase-in-scala-repl-and-sbt-console

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!