projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #5714 from alexischr/update_bockbuild
[mono.git]
/
mcs
/
tests
/
gtest-366.cs
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
public static void Main ()
24
{
25
Assert (10, new MyType (10));
26
}
27
}