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:
authorMarek Safar <marek.safar@gmail.com>2010-10-20 14:30:26 +0400
committerMarek Safar <marek.safar@gmail.com>2010-10-20 19:23:38 +0400
commitfe4774bb26e391f258c3eb42cfde0fef14e91b19 (patch)
treec06cca25edc42fdaf7990eb16e9f13e2c2c32f4f /mcs/tests/test-629.cs
parentaec7b258f4a73688781ab38a0c1fb5adbf84294f (diff)
[647845] Don't skip parent types when looking for simple name
Diffstat (limited to 'mcs/tests/test-629.cs')
-rw-r--r--mcs/tests/test-629.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/mcs/tests/test-629.cs b/mcs/tests/test-629.cs
new file mode 100644
index 00000000000..98b7194e629
--- /dev/null
+++ b/mcs/tests/test-629.cs
@@ -0,0 +1,24 @@
+public class Foo
+{
+ public static class Nested
+ {
+ public static int Bar {
+ get {
+ // bar should be referring to Foo.Nested.bar here
+ return bar.value;
+ }
+ }
+
+ static class bar {
+ // The desired
+ public const int value = 3;
+ }
+ }
+
+ // The undesired
+ int bar;
+
+ public static void Main ()
+ {
+ }
+}