Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@hurrynot.org>2008-08-14 20:07:10 +0400
committerRaja R Harinath <harinath@hurrynot.org>2008-08-14 20:07:10 +0400
commit82fd9897d8b209d8f5733b99d7c187687803fb09 (patch)
tree49c7433450bdba8051a55ac75819faa0bde60cc1 /mcs/tests/test-var-08.cs
parent043276ed0facb7a17d80e8ef7a56ed3eb692aeed (diff)
* mcs/cs-parser.jay (type): Allow 'var' in mcs too.
(local_variable_type): Likewise. * tests, errors: Run 'var' tests with mcs too. svn path=/trunk/mcs/; revision=110494
Diffstat (limited to 'mcs/tests/test-var-08.cs')
-rw-r--r--mcs/tests/test-var-08.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/tests/test-var-08.cs b/mcs/tests/test-var-08.cs
new file mode 100644
index 00000000000..62caf69d3bb
--- /dev/null
+++ b/mcs/tests/test-var-08.cs
@@ -0,0 +1,17 @@
+
+
+using System;
+
+class X
+{
+ int var;
+
+ public X (int var, int i)
+ {
+ var = i;
+ }
+
+ static void Main ()
+ {
+ }
+}