You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Under these exact circumstances, I reliably get an error. (Including the
inclusion of the un-neccesary module. If I change anything, it works fine.)
~/testing$ perl6 -v
This is Rakudo Star version 2017.10 built on MoarVM version 2017.10
implementing Perl 6.c.
~/testing$ cat Testit.pm6
class AnotherTestClass
{
has Str @.something;
}
~/testing$ cat Testmod.pm6
class MyTestClass
{
has Array[Str] $.list;
}
~/testing$ cat testit.p6
use Testit;
use Testmod;
MyTestClass.new(list => Array[Str].new('this'));
~/testing$ perl6 -I . testit.p6
Type check failed in assignment to $!list; expected Array[Str] but got
Array[Str].new("this")
in submethod BUILDALL at /home/ctilmes/testing/Testmod.pm6 (Testmod) line
1
in block <unit> at testit.p6 line 4
Migrated from rt.perl.org#132592 (status was 'new')
Searchable as RT132592$
The text was updated successfully, but these errors were encountered: