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
@paulp said:
And #6880, don't miss that one. It's not realistic to expect reflection to make much sense when the model upon which it is reflecting makes so little itself.
if a parameter to a constructor has the same name as the field of a parent class, that fields getter doesn't show up in calls to
Type.members
:(notice that "method x", the getter, is missing.)
This only seems to be happening because the constructor for B has a parameter named "x" also. Normally,
members
does return inherited getters.(also written up here: http://stackoverflow.com/questions/20692702/in-scala-reflection-why-do-constructor-params-hide-getters)
The text was updated successfully, but these errors were encountered: