projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
680a35523cd9fa3b7de174ce983da8739e71f8ef
[mono.git]
/
mcs
/
tests
/
test-387.cs
1
public struct ObjectID {
2
long l;
3
4
public ObjectID (long l)
5
{
6
this.l = l;
7
}
8
9
public static implicit operator long (ObjectID p)
10
{
11
return p.l;
12
}
13
14
public static implicit operator ObjectID (long l)
15
{
16
return new ObjectID (l);
17
}
18
19
static void Main ()
20
{
21
ObjectID x = new ObjectID (0);
22
decimal y = x;
23
}
24
}
25