Wednesday, 7 August 2013

How to find the type of a Scala expression

How to find the type of a Scala expression

Can I find out the type of an expression in Scala. This would be
particuarly useful when debugging complex partial functions, implicit
conversions, etc...
For example:
println( typeOf( x+y ) )

No comments:

Post a Comment