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-02-21 15:03:22 +0300
committerRaja R Harinath <harinath@hurrynot.org>2005-02-21 15:03:22 +0300
commitc678b7504a825ebe601f744ce4d8919ac3222367 (patch)
tree819e3585a24ab1819e9b763096d8dd3bffc33675 /mcs/tests/test-350.cs
parent215540702933598446775d940bc7d22cfa46f6f6 (diff)
Fix #72756.
* mcs/ecore.cs (Expression.MemberLookupFailed): Add argument to disable the error message when the extended MemberLookup also fails. (Expression.MemberLookupFinal): Update. (SimpleName.DoSimpleNameResolve): Update. * mcs/expression.cs (MemberAccess.ResolveNamespaceOrType): Don't use MemberLookupFinal. (New.DoResolve): Update. (BaseAccess.CommonResolve): Update. * tests/test-350.cs: New test from #72756. svn path=/trunk/mcs/; revision=40977
Diffstat (limited to 'mcs/tests/test-350.cs')
-rw-r--r--mcs/tests/test-350.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/mcs/tests/test-350.cs b/mcs/tests/test-350.cs
new file mode 100644
index 00000000000..1daf45a672c
--- /dev/null
+++ b/mcs/tests/test-350.cs
@@ -0,0 +1,16 @@
+using System;
+
+public class A
+{
+ [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)]
+ public class BAttribute : Attribute
+ {
+ }
+}
+
+
+[A.B()]
+public class C
+{
+ static void Main () {}
+}