diff options
author | Marek Safar <marek.safar@gmail.com> | 2005-01-26 11:31:18 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2005-01-26 11:31:18 +0300 |
commit | 126ae47402f22d4906f368e3f20b2f8f03a2c675 (patch) | |
tree | 21fbeeb84d44eb28c96a9fca9b22893ad8588e8c /mcs/errors/cs0176-4.cs | |
parent | 02b60e6ffc8cec5711fca58307b47dbb14ccb1c0 (diff) |
2005-01-25 Marek Safar <marek.safar@seznam.cz>
* cs0176-4.cs: Bug #71257.
svn path=/trunk/mcs/; revision=39554
Diffstat (limited to 'mcs/errors/cs0176-4.cs')
-rw-r--r-- | mcs/errors/cs0176-4.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/errors/cs0176-4.cs b/mcs/errors/cs0176-4.cs new file mode 100644 index 00000000000..ebafd4fa5f0 --- /dev/null +++ b/mcs/errors/cs0176-4.cs @@ -0,0 +1,14 @@ +// CS0176: Static member 'X.CONST' cannot be accessed with an instance reference; qualify it with a type name instead +// Line: 12 + +public class X { + public const double CONST = 1; +} + +public class Y: X { + + void D (X x) + { + double d = x.CONST; + } +} |