develooper Front page | perl.perl6.users | Postings from September 2020

New type Stash for Block is not a mixin type

Thread Next
From:
Fernando Santagata
Date:
September 24, 2020 18:26
Subject:
New type Stash for Block is not a mixin type
Message ID:
CAJ+jyGi7iFd7ajtzf+_dBawGfNVo=Z+_4HJ1qC=dgZ6zHH_DqQ@mail.gmail.com
Hello,

Since I upgraded to the last Rakudo I'am having a weird problem. I have a
module like this:

unit class Class1;
etc.

Then a second module:

unit class Class2;
use Class1;
etc.

In a program I need both modules, so it begins with two lines:

use Class1;
use Class2;
etc.

At this point if I run the program I get this error:

New type Stash for Block is not a mixin type

pointing to the line of code that uses Class2. If I remove the "use Class1"
line, that program works fine.
But it bugs me, because I don't understand that behavior.

Any hint?
The whole thing worked fine using version 2020.07.

-- 
Fernando Santagata

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About