diff options
author | Raja R Harinath <harinath@hurrynot.org> | 2005-02-18 16:42:55 +0300 |
---|---|---|
committer | Raja R Harinath <harinath@hurrynot.org> | 2005-02-18 16:42:55 +0300 |
commit | 6857b64351cc63113d9f45efdd294c17d89d7e27 (patch) | |
tree | 4050de9fcc265e90fb60a874377779b9b61acffe /mcs/errors/cs0120-5.cs | |
parent | a847f8449c7d3ba477c8a28bd5462f8c179b7edc (diff) |
Fix #72678.
* mcs/expression.cs (Argument.Resolve): Handle a case of CS0120 here.
* errors/cs0120-5.cs: New test from #72678.
svn path=/trunk/mcs/; revision=40860
Diffstat (limited to 'mcs/errors/cs0120-5.cs')
-rw-r--r-- | mcs/errors/cs0120-5.cs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/mcs/errors/cs0120-5.cs b/mcs/errors/cs0120-5.cs new file mode 100644 index 00000000000..17f49b9f39b --- /dev/null +++ b/mcs/errors/cs0120-5.cs @@ -0,0 +1,33 @@ +// cs0120.cs: error CS0120: An object reference is required for the non-static field `Account' +// Line: 28 + +using System; + +namespace Babble.Protocol +{ + public class Query + { + public Query(Account a) + { + } + } + + public class Account + { + } + + public class Auth + { + public Account Account + { + get { return null; } + } + + private class AuthQuery : Query + { + public AuthQuery() : base(Account) + { + } + } + } +} |