You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It only seems to be possible to get it to return true by reaching into the innards of the compiler:
scala> res1.getClass
res3:Class[_ <: reflect.runtime.universe.Symbol] =classscala.reflect.internal.Symbols$ModuleClassSymbol
scala> res1.isModuleClass
<console>:14:error: value isModuleClass is not a member of reflect.runtime.universe.Symbol
res1.isModuleClass
^
scala> res1.asInstanceOf[scala.tools.nsc.Global#Symbol].isModuleClass
res5:Boolean=true
The text was updated successfully, but these errors were encountered:
isModule always seems to return false:
It only seems to be possible to get it to return true by reaching into the innards of the compiler:
The text was updated successfully, but these errors were encountered: