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
[mono/tests] Fix out of tree build.
[mono-project.git]
/
mcs
/
tests
/
gtest-373.cs
blob
75952ad7e6d6fd44ceabb6ca8243b13c3ba1038d
1
using
System
;
2
3
namespace
MonoBug
4
{
5
class
MainClass
6
{
7
public static void
Main
()
8
{
9
GenericType
<
bool
>
g
=
new
GenericType
<
bool
> (
true
);
10
if
(
g
)
11
Console
.
WriteLine
(
"true"
);
12
}
13
}
14
15
public class
GenericType
<
T
>
16
{
17
private
T
value
;
18
19
public
GenericType
(
T
value
)
20
{
21
this
.
value
=
value
;
22
}
23
24
public static implicit operator
T
(
GenericType
<
T
>
o
)
25
{
26
return
o
.
value
;
27
}
28
}
29
}