How to disable / enable advanced phase in scala repl and sbt console

Is it possible to switch the phase without leaving the current session? I tried to enter: power mode, but it still doesn't print types.

+7
scala read-eval-print-loop console
source share
1 answer

In SBT, just add the following setting:

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

in REPL you can use :settings -Xprint:typer

+9
source share

All Articles