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
Here is a proposed test case but we can adjust as needed.
delegate T HelloGenericDelegate<T>()whereT:NSObject;delegate T HelloGenericDelegate2<T>(Tt1)whereT:NSObject;delegate T1 HelloGenericDelegate3<T1,T2>(T1t1,T2t2)whereT1:NSObjectwhereT2:NSObject;delegate T1 HelloGenericDelegate4<T1,T2>(T1t1,T2t2,[BlockCallback]HelloGenericDelegate2<T1>otherBlock)whereT1:NSObjectwhereT2:NSObject;[BaseType(typeof(NSObject))]interfaceOneGenericType<T1>whereT1:NSObject{}[BaseType(typeof(NSObject))]interfaceExample<T1>whereT1:NSObject{[NullAllowed,Export("one", ArgumentSemantic.Copy)]Func<T1,bool> One {get;set;}[NullAllowed,Export("two", ArgumentSemantic.Copy)]Action<T1> Two {get;set;}[NullAllowed,Export("three", ArgumentSemantic.Copy)]Func<T1,OneGenericType<T1>,OneGenericType<T1>> Three {get;set;}[NullAllowed,Export("four", ArgumentSemantic.Copy)]HelloGenericDelegate<T1> Four {get;set;}[NullAllowed,Export("five", ArgumentSemantic.Copy)]HelloGenericDelegate2<T1> Five {get;set;}}interfaceTwoGenericsType<T1,T2>whereT1:NSObjectwhereT2:NSObject{}[BaseType(typeof(NSObject))]interfaceExampleTwo<T1,T2>whereT1:NSObjectwhereT2:NSObject{[NullAllowed,Export("one", ArgumentSemantic.Copy)]Func<T1,bool,T2> One {get;set;}[NullAllowed,Export("two", ArgumentSemantic.Copy)]Action<T1,T2> Two {get;set;}[NullAllowed,Export("three", ArgumentSemantic.Copy)]Func<T1,T2,TwoGenericsType<T1,T2>,TwoGenericsType<T1,T2>> Three {get;set;}[NullAllowed,Export("four", ArgumentSemantic.Copy)]HelloGenericDelegate3<T1,T2> Four {get;set;}[NullAllowed,Export("five", ArgumentSemantic.Copy)]HelloGenericDelegate4<T1,T2> Five {get;set;}}
The text was updated successfully, but these errors were encountered:
dalexsoto
changed the title
[generator] Support for generic clases in out block trampolines
[generator] Support for generic clases in our block trampolines
Jul 2, 2020
rolfbjarne
changed the title
[generator] Support for generic clases in our block trampolines
[generator] Support for generic classes in our block trampolines
Jul 3, 2020
Binding UIKit brought some generic classes into the mix of our blocks support, see https://github.com/xamarin/xamarin-macios/pull/8992/files#diff-1ca9e8e46629c0f8806cee2c8be4aad3R22727-R22764.
Here is a proposed test case but we can adjust as needed.
The text was updated successfully, but these errors were encountered: