Fix ordering in default interface method lookup (#67379)
* Fix ordering in default interface method lookup The previous implementation would find a default implementation in the current type before looking for non-default implementation in the base. Default implementations should be looked at last. In fact the default implementation in the current type is unreachable if there's a non-default implementation in the base type - the compiler shouldn't even have bothered to emit it into the dispatch map. That can be a separate fix - this fix is still logically correct and necessary to get variant dispatch corner cases correctly. * Regression test
Showing
想要评论请 注册 或 登录