Skip to content

Instantly share code, notes, and snippets.

@peschwa
Last active April 14, 2016 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peschwa/372ef1685d25b1b3ce1b967262d59330 to your computer and use it in GitHub Desktop.
Save peschwa/372ef1685d25b1b3ce1b967262d59330 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl6
use v6;
role FooeyRole {
method bar {
say "stub soon";
!!!
}
}
class Foo {
method new {
self.bless does FooeyRole;
}
method bar {
say "Foo.bar";
Foo.new.bar;
}
}
Foo.^can('bar').perl.say;
Foo.new.^can('bar').perl.say;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment