I prepared a question on this issue. Probably the best I put it in here (please don't cry because that is not the answer).
I tried Robin Green's solution, but (as you know) it gives more output than required.
Here:
Being new to Scala and a mechanism of the supposed type, I think it would be useful to do something like this:
@spitType s= something ...
The imaginary spitType will look like a compile-time macro (similar to #pragma warning in C ++), which would give information about the type of expression at compile time.
I know that I can get this information at runtime, but in cases where the rest of the code is not compiled yet, a compilation message will be the only useful thing.
Could you find this opportunity useful or simply inappropriate?
akauppi
source share