On Sun, 05 Nov 2017 07:54:01 -0800, alex.jakime...@gmail.com wrote:
> FWIW the error message seems to be coming from MoarVM:
> https://github.com/MoarVM/MoarVM/blob/ad86184681590c81fc25b9e90b406e5163098796/src/6model/reprconv.c#L607
> (many similar lines like this in that file)
> 
> On 2017-11-05 07:46:17, alex.jakime...@gmail.com wrote:
> > Hey Tobias, it looks like you've been working on this ticket for over
> > two
> > years. How is it going?
> > On 2015-04-09 12:09:55, FROGGS.de wrote:
> > > How about:
> > >
> > > (before)
> > > $ perl6-m -e 'class A { has $!x; method foo { say $!x } }; A.foo'
> > > Cannot look up attributes in a type object
> > > in method foo at -e:1
> > > in block <unit> at -e:1
> > >
> > > (after)
> > > $ perl6-m -e 'class A { has $!x; method foo { say $!x } }; A.foo'
> > > Cannot look up attributes in a type object. Perhaps you need to
> > > instanciate first?
> > > in method foo at -e:1
> > > in block <unit> at -e:1


The error message was recently improved in 
https://github.com/MoarVM/MoarVM/commit/68a18b4f22553bfd96c47c8d7453af881772b3d4#diff-be9fec83f5b58ba42962ded7b65de075

$ perl6-m -e 'class A { has $!x; method foo { say $!x } }; A.foo'
Cannot look up attributes in a A type object
  in method foo at -e line 1
  in block <unit> at -e line 1

Reply via email to