a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
16 lines
288 B
C#
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 ();
|
|
}
|
|
}
|