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
[eglib] In AIX/generic POSIX, handle null addresses better (#17892)
[mono-project.git]
/
mcs
/
tests
/
test-var-06.cs
blob
08345c36686bf8ed133336511ece2d81aaae774a
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
public 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