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
We need to inline the members of the UITraitChangeObservable interface into implementing types (UIView, UIViewController, UIPresentationController, UIWindowScene). This turned out a bit cumbersome to implement, because C# doesn't support calling the default interface member from an actual implementing member (#13294 (comment)).
rolfbjarne
changed the title
Inline
Inline UITraitChangeObservable in implementing interfaces
Mar 6, 2024
rolfbjarne
changed the title
Inline UITraitChangeObservable in implementing interfaces
Inline UITraitChangeObservable in implementing classes
Mar 6, 2024
…that implement it. Fixes#20265.
This also required fixing:
* A bug in the static registrar where we'd ignore the generic parameters in a method
when looking for methods implementing an interface.
* A bug in the generator where we'd throw You_Should_Not_Call_base_In_This_Method()
in some cases where we shouldn't.
Also:
* Enable nullability and fix any resulting issues.
* Clean up some legacy code we don't need anymore.
Ref: #19410 (comment)Fixes#20265.
This is a follow-up to #19410.
We need to inline the members of the
UITraitChangeObservable
interface into implementing types (UIView
,UIViewController
,UIPresentationController
,UIWindowScene
). This turned out a bit cumbersome to implement, because C# doesn't support calling the default interface member from an actual implementing member (#13294 (comment)).Here's the current WIP: rolfbjarne@5e09575 / https://github.com/rolfbjarne/xamarin-macios/commits/uitraitchangeobservable-inlined-edition
This is probably much easier to do once we've added support for default interface members (#13294), so postpone until then.
The text was updated successfully, but these errors were encountered: