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-01-12 16:59:44 +0300
committerRaja R Harinath <harinath@hurrynot.org>2005-01-12 16:59:44 +0300
commitbb47e5817ea2c083cd2a552c7de116bf1df7154d (patch)
tree7c91048feb0a999267b8d0a216f8e99c4cadac0d /mcs/errors/cs1540-6.cs
parent4c9518617897665dd5cfb5e63dbce86d3a97f8f9 (diff)
Fix cs0038-1.cs, cs1640-6.cs.
* ecore.cs (Expression.Resolve): Remove special-case for SimpleName in error-handling. (Expression.almostMatchedMembers): Relax access permission to protected. (Expression.MemberLookupFailed): Handle duplicates in almostMatchedMembers list. (SimpleName.DoSimpleNameResolve): Catch CS0038 errors earlier. * expression.cs (New.DoResolve): Report CS1540 for more cases. * typemanager.cs (GetFullNameSignature): Use the MethodBase overload if the passed in MemberInfo is a MethodBase. svn path=/trunk/mcs/; revision=38783
Diffstat (limited to 'mcs/errors/cs1540-6.cs')
-rw-r--r--mcs/errors/cs1540-6.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/mcs/errors/cs1540-6.cs b/mcs/errors/cs1540-6.cs
new file mode 100644
index 00000000000..afa87c20539
--- /dev/null
+++ b/mcs/errors/cs1540-6.cs
@@ -0,0 +1,26 @@
+public class A {
+ public A ()
+ {
+ }
+
+ protected A (A a)
+ {
+ }
+}
+
+public class B : A {
+ public B () : base ()
+ {
+ }
+
+ public B (A a) : base (a)
+ {
+ }
+
+ public A MyA {
+ get {
+ A a = new A (this);
+ return a;
+ }
+ }
+}