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>2006-01-30 17:05:10 +0300
committerRaja R Harinath <harinath@hurrynot.org>2006-01-30 17:05:10 +0300
commitfff806bd60410b7c9142c7b713d51650288d12af (patch)
treea4e16c52becf90a65bc24910cc86cd0326b89700 /mcs/tests/test-490.cs
parent38466167f12156bd906878b3beaf71e59e2770d6 (diff)
Fix #77401
* mcs/cs-parser.jay (VariableDeclaration): Don't set current_array_type to null. (field_declaration, event_declaration, declaration_statement): Set it to null here. * gmcs/cs-parser.jay: Likewise. * tests/test-490.cs: New test from #77401. svn path=/trunk/mcs/; revision=56248
Diffstat (limited to 'mcs/tests/test-490.cs')
-rw-r--r--mcs/tests/test-490.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/mcs/tests/test-490.cs b/mcs/tests/test-490.cs
new file mode 100644
index 00000000000..4394a0f4e23
--- /dev/null
+++ b/mcs/tests/test-490.cs
@@ -0,0 +1,5 @@
+class T {
+ static int[] a = {1,2},
+ b = {3, 4};
+ static void Main () {}
+}