Created
July 17, 2013 15:38
-
-
Save agrif/6021731 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SuperClass : Object | |
| { | |
| public class void test(); | |
| } | |
| class SubClass : SuperClass | |
| { | |
| static construct | |
| { | |
| // error: Access to instance member `SuperClass.test' denied | |
| SuperClass.test(); | |
| // error: The name `test' does not exist in the context of `SubClass' | |
| SubClass.test(); | |
| } | |
| } | |
| void main() | |
| { | |
| // error: Access to instance member `SuperClass.test' denied | |
| SuperClass.test(); | |
| // error: The name `test' does not exist in the context of `SubClass' | |
| SubClass.test(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment