projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
use new GetOriginalType method
[mono.git]
/
mcs
/
tests
/
gtest-var-06.cs
1
// Compiler options: -langversion:linq
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