You've already forked linux-packaging-mono
Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
parent
1190d13a04
commit
6bdd276d05
39
mcs/tests/gtest-640.cs
Normal file
39
mcs/tests/gtest-640.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user