Closed
Description
openedon Jul 29, 2021
The code below is incorrect (Class1 doesn't implement Interface1 correctly since f takes a float instead of a MyEnum).
However, the generator will crash, instead of emitting diagnostics.
namespace CppComponent
{
public enum MyEnum
{
Value1 = 42,
Value2 = 99
}
public interface Interface1
{
void f(int x, MyEnum y);
}
sealed public class Class1 : Interface1
{
public void f(int x, float y);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment