문제

According to "Programming in Scala" one can pass the argument -Xprint:typer to the compiler and gets the code back as it looks after all the implicites are actually applied.

I also found that I can set compiler arguments in the project properties.

But I can't find any resulting output anywhere ...

So where do I have to look?

도움이 되었습니까?

해결책 2

With the Scala IDE 2.1 Milestone 1 you can press Ctrl-1 to make implicits explicit

From http://scala-ide.org/download/milestone.html#scala_ide_21_milestone_1

Highlight Implicits It has never been easier to know where implicits are applied. And, by pressing Cmd/Ctrl+1, turn an implicit conversion into an explicit call!

다른 팁

If you start Eclipse from a console, you should see the printed output there.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top