Skip to content

Instantly share code, notes, and snippets.

@hoelzro
Last active December 21, 2015 18:32
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 hoelzro/94dfab0137342c66f31e to your computer and use it in GitHub Desktop.
Save hoelzro/94dfab0137342c66f31e to your computer and use it in GitHub Desktop.
use v6;
class C {
has Str $!dist-id;
submethod BUILD(:$!dist-id) {}
}
my ( $build ) = C.can('BUILD');
say $build.signature.params<dist-id>.type; # prints Any, should it be Str?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment