Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-387.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 289713505ef9fb0161781ec6c884ea23e5945161 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
public struct ObjectID {
	long l;

	public ObjectID (long l)
	{
		this.l = l;
	}

	public static implicit operator long (ObjectID p)
	{
		return p.l;
	}

	public static implicit operator ObjectID (long l)
	{
		return new ObjectID (l);
	}

	public static void Main ()
	{
		ObjectID x = new ObjectID (0);
		decimal y = x;
	}
}