Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

33 lines
369 B
C#

using System;
public class Test
{
public static int Main ()
{
S a = new S ();
S? b = null;
var res = a | b;
if (res != "op")
return 1;
var res2 = a + b;
if (res2 != 9)
return 2;
return 0;
}
}
struct S
{
public static string operator | (S p1, S? p2)
{
return "op";
}
public static int? operator + (S p1, S? p2)
{
return 9;
}
}