Last active
December 21, 2015 18:32
-
-
Save hoelzro/94dfab0137342c66f31e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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