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
* ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
[mcs.git]
/
tests
/
test-81.cs
blob
005708bfc86b5a4fda4038efa601fcb6930e29dc
1
//
2
// Tests if we can invoke static members using the short
3
// names
4
//
5
using
System
;
6
7
namespace
N1
8
{
9
public class
A
10
{
11
int
x
;
12
string
s
;
13
14
void
Bar
()
15
{
16
x
=
int
.
Parse
(
"0"
);
17
s
=
string
.
Format
(
"
{0}
"
,
x
);
18
}
19
20
public static int
Main
()
21
{
22
A a
=
new
A
();
23
24
a
.
Bar
();
25
26
if
(
a
.
x
!=
0
)
27
return
1
;
28
29
if
(
a
.
s
!=
"0"
)
30
return
1
;
31
32
Console
.
WriteLine
(
"Bar set s to "
+
a
.
s
);
33
34
return
0
;
35
}
36
}
37
}