Skip to content

Instantly share code, notes, and snippets.

@ashgti
Created August 10, 2009 15:38
Show Gist options
  • Select an option

  • Save ashgti/165247 to your computer and use it in GitHub Desktop.

Select an option

Save ashgti/165247 to your computer and use it in GitHub Desktop.
#!perl6
use v6;
class A {
method foo { say 'A::test'; }
}
class B is A {
method foo {
self.A::foo;
say 'but also B::foo';
}
}
my B $b .= new;
$b.foo;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment