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
Merge pull request #1861 from saper/home-override
[mono-project.git]
/
mcs
/
tests
/
gtest-074.cs
blob
b89e1c0ae0f34e7ece88023a9dd8192753920203
1
using
System
;
2
3
public struct
Foo
<
T
>
4
{
5
public
T Data
,
Data2
;
6
7
public
Foo
(
T a
,
T b
)
8
{
9
this
.
Data
=
a
;
10
this
.
Data2
=
b
;
11
}
12
}
13
14
public class
Test
<
T
>
15
{
16
public
T Data
,
Data2
;
17
18
public
Test
(
T a
,
T b
)
19
{
20
this
.
Data
=
a
;
21
this
.
Data2
=
b
;
22
}
23
}
24
25
class
X
26
{
27
public static int
Main
()
28
{
29
Foo
<
long
>
foo
=
new
Foo
<
long
> (
3
,
5
);
30
if
(
foo
.
Data
!=
3
)
31
return
1
;
32
if
(
foo
.
Data2
!=
5
)
33
return
2
;
34
35
Test
<
long
>
test
=
new
Test
<
long
> (
3
,
5
);
36
if
(
test
.
Data
!=
3
)
37
return
3
;
38
if
(
test
.
Data2
!=
5
)
39
return
4
;
40
41
return
0
;
42
}
43
}