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
remove NotWorking
[mcs.git]
/
tests
/
gtest-366.cs
blob
beeee1e2af22df1d1a003842a3efb214b4c87668
1
2
public struct
MyType
3
{
4
int value
;
5
6
public
MyType
(
int value
)
7
{
8
this
.
value
=
value
;
9
}
10
11
public static implicit operator int
(
MyType o
)
12
{
13
return
o
.
value
;
14
}
15
}
16
17
class
Tester
18
{
19
static void
Assert
<
T
> (
T expected
,
T
value
)
20
{
21
}
22
23
static void
Main
()
24
{
25
Assert
(
10
,
new
MyType
(
10
));
26
}
27
}