summaryrefslogtreecommitdiff
path: root/mcs/tests/test-520.cs
blob: 831f200e669b83800969a46fd1a45301437d8153 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 ();
	}
}