hankache / rakuguide

The Raku Guide

Home Page:https://raku.guide

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug in corrected Multiple inheritance example

quipa opened this issue · comments

In section 9.8 https://perl6intro.com/#_multiple_inheritance for the corrected example, I am not getting the right output. I am guessing the constructor is not correctly assigning the lines-valuesargument to the inherited @.lines-values attribute?

Instead of:

Actual sales:
[10 9 11 8 7 10]
Forecast sales:
[9 8 10 7 6 9]
Actual vs Forecast:
[10 9 11 8 7 10]
[9 8 10 7 6 9]

I get:

Actual sales:
[10 9 11 8 7 10]
Forecast sales:
[9 8 10 7 6 9]
Actual vs Forecast:
[10 9 11 8 7 10]
[]

@quipa Thank you for your feedback. This seems like a regression in Rakudo. A bug has been submitted to fix it.

The issue was resolved, can this be closed? Now it outputs:

Actual sales:
[10 9 11 8 7 10]
Forecast sales:
[9 8 10 7 6 9]
Actual vs Forecast:
[10 9 11 8 7 10]

which is the same as what the guide claims?