[runtime] Avoid indirection when building MonoContext on darwin
[mono.git] / mcs / tests / test-520.cs
1 using System;
2
3 class FakeInt {
4         private long _value;
5         public FakeInt (long val) { _value = val; }
6         public static implicit operator long (FakeInt self) { return self._value; }
7 }
8
9 class MainClass {
10         public static void Main ()
11         {
12                 if(new FakeInt (42) != 42)
13                         throw new Exception ();
14         }
15 }