Search Issue Tracker

Fixed in 5.0.4

Votes

4

Found in

5.0.2p2

Issue ID

699228

Regression

Yes

IL2CPP compile error when script contains method group of interface to delegate conversion

IL2CPP

-

How to reproduce:

1. Open attached project
- Project contains a single script:

using System;

public interface IMyInterface<T>
{
void OnNext(T value);
}

public static class Test
{
public static void Error<T>(IMyInterface<T> mi)
{
var act = new Action<T>(mi.OnNext); // il2cpp error
UnityEngine.Debug.Log(act);
}
}

2. Build to iOS
- Note the errors when building

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.