Skip to content

Instantly share code, notes, and snippets.

@CIAvash

CIAvash/A.pm6 Secret

Created January 18, 2016 18:39
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 CIAvash/1af6cd0fb167526ba847 to your computer and use it in GitHub Desktop.
Save CIAvash/1af6cd0fb167526ba847 to your computer and use it in GitHub Desktop.
Perl 6 type check failure for Array of *
use B;
unit class A;
method make_str returns Array of Str {
Array[Str].new: '' xx 3;
}
unit class B;
has Str @.arr;
#!/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