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-var-06.cs
blob
d87ce0bbae4ff46bce72bd10dafb64f4731e5b37
1
2
// Tests variable type inference with the var keyword when using the for-statement
3
4
using
System
;
5
6
public class
Test
7
{
8
static int
Main
()
9
{
10
for
(
var
i
=
0
;
i
<
1
; ++
i
)
11
if
(
i
.
GetType
() !=
typeof
(
int
))
12
return
1
;
13
14
return
0
;
15
}
16
}
17