Types and Symbols in Scala reflection API -


why converting type symbol , leads lose of type information?

code:

println(typeof[string] <:< typeof[string]) println(typeof[string].typesymbol.info <:< typeof[string]) 

output:

true false 

doc info says:

this method returns signatures in generic way possible.

in case, info returns java.lang.object rather string , hence false result.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -