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

前端 未结 1 891
清歌不尽
清歌不尽 2021-02-08 14:15

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条回答
  •  独厮守ぢ
    2021-02-08 14:25

    In SBT just add the following setting:

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

    in REPL you can use :settings -Xprint:typer

    0 讨论(0)
提交回复
热议问题