-
-
Save CIAvash/1af6cd0fb167526ba847 to your computer and use it in GitHub Desktop.
Perl 6 type check failure for Array of *
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 B; | |
unit class A; | |
method make_str returns Array of Str { | |
Array[Str].new: '' xx 3; | |
} |
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
unit class B; | |
has Str @.arr; |
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
#!/usr/bin/env perl6 | |
use lib '.'; | |
use A; | |
say A.new.make_str.perl; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment