Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot call .type method on an Attribute instance of Array #5735

Closed
p6rt opened this issue Oct 8, 2016 · 5 comments
Closed

Cannot call .type method on an Attribute instance of Array #5735

p6rt opened this issue Oct 8, 2016 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 8, 2016

Migrated from rt.perl.org#129830 (status was 'resolved')

Searchable as RT129830$

@p6rt
Copy link
Author

p6rt commented Oct 8, 2016

From @titsuki

See the following result​:

$ perl6 -e 'class TypeHouse { has Int @​.array; }; TypeHouse.^attributes[0].type.say;'
Cannot unbox a type object
  in block <unit> at -e line 1

$ perl6 --version
This is Rakudo version 2016.09-105-g4abc28c built on MoarVM version 2016.09-13-g34c375a
implementing Perl 6.c.

@p6rt
Copy link
Author

p6rt commented Oct 8, 2016

From @geekosaur

[08 02​:06​:10] <geekosaur> m​: class TypeHouse { has Int @​.array; }; dd
TypeHouse.^attributes[0];
[08 02​:06​:11] <camelia> rakudo-moar 2285d3​: OUTPUT«Attribute @​!array =
Attribute.new␤
[08 02​:06​:11] »
[08 02​:06​:24] <geekosaur> m​: class TypeHouse { has Int @​.array; }; dd
TypeHouse.^attributes[0].type;
[08 02​:06​:25] <camelia> rakudo-moar 2285d3​: OUTPUT«Positional[Int]␤
[08 02​:06​:25] »

So it's the implicit .gist done by say on the type object that is dying,
not something on the way to it. (This may be expected.)

--
brandon s allbery kf8nh sine nomine associates
allbery.b@​gmail.com ballbery@​sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

@p6rt
Copy link
Author

p6rt commented Oct 8, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Oct 8, 2016

From @MasterDuke17

Fixed in rakudo/rakudo#899

Tests added in Raku/roast@7d6ddc6

@p6rt
Copy link
Author

p6rt commented Oct 8, 2016

@MasterDuke17 - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Oct 8, 2016
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant