问题
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