Skip to content

Instantly share code, notes, and snippets.

Created July 4, 2010 20:12
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 anonymous/463718 to your computer and use it in GitHub Desktop.
Save anonymous/463718 to your computer and use it in GitHub Desktop.
pmichaud@plum:~/rakudo$ cat x
class B {
method foo($param) of Num { }
}
my @methods = B.^methods(:local);
say @methods[0].returns, Num;
pmichaud@plum:~/rakudo$ ./perl6 x
Mu()Num()
pmichaud@plum:~/rakudo$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment