It works fine if the three statements are on the same line and if the
program is being read from a file, so I guess it's bug of the REPL.
On Fri, Sep 16, 2016 at 1:49 PM, mt1957 <mt1...@gmail.com> wrote:
> Hi everyone,
> I am trying to create a subset but get errors when used. Surely I do
> something wrong here or is it a bug?
> In REPL
> > my Map $p .= new(<d f g h aa bb ff>.kv.reverse);
> > subset pv of Str where $_ (elem) $p;
> > my pv $x = 'aa';
> Type check failed in assignment to $x; expected pv but got Str ("aa")
> in block <unit> at <unknown file> line 3