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>2005-09-02 16:19:54 +0400
committerRaja R Harinath <harinath@hurrynot.org>2005-09-02 16:19:54 +0400
commit8d39e218b45054b53773b215dbcc0583622b7e08 (patch)
treea955be45528ed85309b95580e03c094404558229 /mcs/tests/test-452.cs
parent087ea6e264894a3aeffaf06179456020eb95df30 (diff)
In mcs:
Fix #75941. * ecore.cs (SimpleNameResolve.DoSimpleNameResolve): Disable flow-branching for LocalVariableReferences in case we were invoked from a MemberAccess. * expression.cs (LocalVariableReference.VerifyAssigned): New. Carved out of ... (LocalVariableReference.DoResolveBase): ... this. (MemberAccess.Resolve): Do the check that was disabled during SimpleNameResolve. In tests: * test-452.cs: New test from #75941. svn path=/trunk/mcs/; revision=49340
Diffstat (limited to 'mcs/tests/test-452.cs')
-rw-r--r--mcs/tests/test-452.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/mcs/tests/test-452.cs b/mcs/tests/test-452.cs
new file mode 100644
index 00000000000..af82adcf4d6
--- /dev/null
+++ b/mcs/tests/test-452.cs
@@ -0,0 +1,13 @@
+class Foo
+{
+ static public Foo x;
+}
+
+class Test
+{
+ static void Main ()
+ {
+ Foo Foo;
+ Foo = Foo.x;
+ }
+}