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
* ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
[mcs.git]
/
tests
/
test-548.cs
blob
f732fed9d57baf5c2332d143966f04388c79640f
1
using
System
;
2
3
namespace
Bugs
4
{
5
class
Bug0
6
{
7
struct
MyBoolean
8
{
9
private bool value
;
10
public
MyBoolean
(
bool value
)
11
{
12
this
.
value
=
value
;
13
}
14
public static implicit operator
MyBoolean
(
bool value
)
15
{
16
return new
MyBoolean
(
value
);
17
}
18
public static implicit operator bool
(
MyBoolean b
)
19
{
20
return
b
.
value
;
21
}
22
}
23
24
public static int
Main
()
25
{
26
MyBoolean b
=
true
;
27
if
(
true
&&
b
)
28
{
29
return
0
;
30
}
31
else
32
{
33
return
100
;
34
}
35
}
36
}
37
}