Luciano
Luciano

Reputation: 8582

Is it possible to know what Scala implicit is being used, without the help of an IDE?

For the times when you are reading source code without an IDE at hand.

Upvotes: 5

Views: 286

Answers (1)

Boris the Spider
Boris the Spider

Reputation: 61128

Compile with the Xprint:typer scalac option.

This tells scalac to explain what it's doing.

This article explains the option and gives an example of the output (towards the bottom).

Upvotes: 5

Related Questions