[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git] / mcs / tests / test-840.cs
blob5c4a93aeb2e65691f0af84eff078fff7b054af12
1 struct R
3 public static bool operator < (R left, R right)
5 return true;
8 public static bool operator > (R left, R right)
10 return false;
13 public static implicit operator float(R r)
15 return 5;
18 public static implicit operator R(float f)
20 return new R ();
24 class C
26 public static int Main ()
28 var r = new R ();
29 float f = 999f;
31 bool b = f < r;
32 if (!b)
33 return 1;
35 return 0;