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
monotouch uses the real HttpWebRequest
[mcs.git]
/
tests
/
gtest-074.cs
blob
dae2000a3a9bec3c6fa434ea9fd527ef6a8fd872
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
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
}