repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Facades] Move IncrementalHash to System.Security.Cryptography.Algorithms facade
[mono-project.git]
/
mcs
/
tests
/
test-450.cs
blob
3c70f16ec202c4e1280b0cba1ed966b70ecda748
1
using
System
;
2
3
enum
E
:
byte
4
{
5
V
6
}
7
8
class
A
9
{
10
int value
;
11
12
private
A
(
int value
)
13
{
14
this
.
value
=
value
;
15
}
16
17
public static implicit operator byte
(
A a
)
18
{
19
return
6
;
20
}
21
22
public static implicit operator
A
(
int
a
)
23
{
24
return new
A
(
a
);
25
}
26
27
public static int
Main
()
28
{
29
var
a
=
new
A
(
0
);
30
a
++;
31
if
(
a
.
value
!=
7
)
32
return
1
;
33
34
var
e
=
E
.
V
;
35
e
++;
36
37
if
((
int
)
e
!=
1
)
38
return
2
;
39
40
return
0
;
41
}
42
}