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
The following code snippet results in a SIGSEGV on iOS when building with <MtouchInterpreter>-all</MtouchInterpreter>.
// obj must be 'IInterface<Implementation>', can't repro when declaring as 'Implementation'IInterface<Implementation>obj=newImplementation();Func<object,Implementation>action=obj.Method;Action.Invoke(default!);publicinterfaceIInterface<outTValue>{TValueMethod<TInterface>(TInterfaceparameter)whereTInterface:class;// constriant required, any constraint still repros}// implementation must be structpublicstructImplementation:IInterface<Implementation>{publicImplementationMethod<TInterface>(TInterfaceparameter)whereTInterface:class=>newImplementation();}
Reproduction Steps
Create iOS project via templates (dotnet new ios)
Add <MtouchInterpreter>-all</MtouchInterpreter> to the iOS project file
Add the code snippet mentioned in description somewhere in the project.
Build project and run application on a physical device.
Expected behavior
Code runs fine.
Actual behavior
Code fails when the delegate is created, with the following crash report:
Description
The following code snippet results in a SIGSEGV on iOS when building with
<MtouchInterpreter>-all</MtouchInterpreter>
.Reproduction Steps
dotnet new ios
)<MtouchInterpreter>-all</MtouchInterpreter>
to the iOS project fileExpected behavior
Code runs fine.
Actual behavior
Code fails when the delegate is created, with the following crash report:
Regression?
No response
Known Workarounds
No response
Configuration
Not sure whether it's specific to my configuration.
Other information
No response
The text was updated successfully, but these errors were encountered: