develooper Front page | perl.perl6.compiler | Postings from May 2018

[perl #126724] [BUG] Unsatisfactory internal error when trying tocompose two roles (connected with 'does') that share the same privateattribute in Rakudo

From:
Brian S. Julin via RT
Date:
May 10, 2018 03:59
Subject:
[perl #126724] [BUG] Unsatisfactory internal error when trying tocompose two roles (connected with 'does') that share the same privateattribute in Rakudo
Message ID:
rt-4.0.24-5312-1525924782-336.126724-80-0@perl.org

Current behavior seems to be satisfactory now:

$ perl6 -e 'role R { has $.x }; role S does R { has $.x }; S.new;'
Attribute '$!x' conflicts in role composition

Test added in https://github.com/perl6/roast/commit/c65ed93912

closing.




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