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
error CS0539: 'global::I<...>.f' in explicit interface declaration is not a member of interface
because it generates
global::Iglobal::I<object>.f(){
while I<object>.f is required to return I<object>, not I
and C2 gives this:
error CS0738: 'C2' does not implement interface member 'I<object>.f()'. 'C2.f()' cannot implement 'I<object>.f()' because it does not have the matching return type of 'I<object>'
which is a similar error (using I instead of I<object>), just the f is not using explicit interface implementation, so the error message is different.
What I don't quite understand yet is why generated code for Dynamic is different from Any, but I guess it's related to Dynamic variance?
I'm not hopeful, but maybe @waneck has some time to look into this? :)
The text was updated successfully, but these errors were encountered:
C
gives this native compilation error:because it generates
while
I<object>.f
is required to returnI<object>
, notI
and
C2
gives this:which is a similar error (using
I
instead ofI<object>
), just thef
is not using explicit interface implementation, so the error message is different.What I don't quite understand yet is why generated code for
Dynamic
is different fromAny
, but I guess it's related to Dynamic variance?I'm not hopeful, but maybe @waneck has some time to look into this? :)
The text was updated successfully, but these errors were encountered: