Unhandled Exception: System.MethodAccessException: Attempt by method 'BBB.Main()
' to access method 'A.Foo()' failed.
Created attachment 2056 [details]
Created attachment 2057 [details]
I think this is a bug in virtual dispatch where wrong method is called
Actually, verifier catches this but why do we allow to call non-accessible method?
We ran into this because an interaction between mcs and ikvm and the current Mono runtime behavior masked the problem. So I would argue for at least reconsidering the choice of not enabling access check by default.
Queued to be merged https://github.com/mono/mono/pull/2880
Ok, finally got the time to fix and merge.