Skip to content

Instantly share code, notes, and snippets.

@agrif
Created July 17, 2013 15:38
Show Gist options
  • Select an option

  • Save agrif/6021731 to your computer and use it in GitHub Desktop.

Select an option

Save agrif/6021731 to your computer and use it in GitHub Desktop.
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