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

16 lines
288 B
C#

using System;
class FakeInt {
private long _value;
public FakeInt (long val) { _value = val; }
public static implicit operator long (FakeInt self) { return self._value; }
}
class MainClass {
public static void Main ()
{
if(new FakeInt (42) != 42)
throw new Exception ();
}
}