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
methods will contain a single method - public abstract Foo A.doSomething(). However, this doesn't tell the whole story - notice that B.doSomething actually returns a Bar instead of a Foo. Therefore, in this case I'd expect methods to contain public Bar B.doSomething(), which gives me more information than A.doSomething() does.
The text was updated successfully, but these errors were encountered:
I've recently come across a surprising behaviour regarding
MemberResolver
'sgetMemberMethods
. Consider the following classes:Notice that
C
implementsA.doSomething()
throughB.doSomething()
.When inspecting the members of C like this:
methods
will contain a single method -public abstract Foo A.doSomething()
. However, this doesn't tell the whole story - notice thatB.doSomething
actually returns aBar
instead of aFoo
. Therefore, in this case I'd expectmethods
to containpublic Bar B.doSomething()
, which gives me more information thanA.doSomething()
does.The text was updated successfully, but these errors were encountered: