repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-12-09 Jb Evain <jbevain@novell.com>
[mcs.git]
/
tests
/
test-520.cs
blob
831f200e669b83800969a46fd1a45301437d8153
1
using
System
;
2
3
class
FakeInt
{
4
private long
_value
;
5
public
FakeInt
(
long
val
)
{ _value = val; }
6
public static implicit operator long
(
FakeInt self
)
{ return self._value; }
7
}
8
9
class
MainClass
{
10
public static void
Main
()
11
{
12
if
(
new
FakeInt
(
42
) !=
42
)
13
throw new
Exception
();
14
}
15
}