Imported Upstream version 5.0.0.42

Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-04-10 11:41:01 +00:00
parent 1190d13a04
commit 6bdd276d05
19939 changed files with 3099680 additions and 93811 deletions

39
mcs/tests/gtest-640.cs Normal file
View File

@@ -0,0 +1,39 @@
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;
}
}