diff options
author | Marek Safar <marek.safar@gmail.com> | 2010-10-20 14:30:26 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2010-10-20 19:23:38 +0400 |
commit | fe4774bb26e391f258c3eb42cfde0fef14e91b19 (patch) | |
tree | c06cca25edc42fdaf7990eb16e9f13e2c2c32f4f /mcs/tests/test-629.cs | |
parent | aec7b258f4a73688781ab38a0c1fb5adbf84294f (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.cs | 24 |
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 () + { + } +} |