[sdks] Fix README.md
[mono-project.git] / mcs / tests / gtest-139.cs
blob435598de5e11d49ddce548a53b1a5695d144f802
1 using System;
3 public struct MyStruct
5 public static int operator !=(MyStruct? a, string b)
7 return -1;
10 public static int operator ==(MyStruct? a, string b)
12 return 1;
15 public static int operator !=(string a, MyStruct? b)
17 return -2;
20 public static int operator ==(string a, MyStruct? b)
22 return 2;
26 public class Test
28 public static int Main()
30 MyStruct? ms = new MyStruct ();
31 int v;
32 v = ms == "a";
33 if (v != 1)
34 return 1;
36 v = "b" != ms;
37 if (v != -2)
38 return 2;
40 return 0;