Xamarin Public Jenkins (auto-signing) 6bdd276d05 Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
2017-04-10 11:41:01 +00:00

39 lines
542 B
C#

using System;
public struct Test
{
public static Test op_Addition<T>(Test p1, T p2)
{
throw new ApplicationException ();
}
public static int op_Addition<T>(T p1, int p2)
{
throw new ApplicationException ();
}
public static Test operator +(Test p1, Test p2)
{
throw new ApplicationException ();
}
public static long operator +(Test p1, int p2)
{
return 4;
}
}
public class Program
{
public static int Main ()
{
var t = new Test ();
int p2 = 20;
var res = t + p2;
if (res != 4)
return 1;
return 0;
}
}