[PUP-4511] Types Array[?], Hash[?,?], and Optional[?] are not assignable to themselves Created: 2015/05/01 Updated: 2015/05/20 Resolved: 2015/05/20
|Fix Version/s:||PUP 3.8.1, PUP 4.1.0|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
The TypeCalculator.assignable? method does not consider the types Array[?], Hash[?,?], and Optional[?] to be assignable to themselves.
This is an internal fix. The problem can not be reproduced from Puppet. The only way to reproduce the problem is to use internal Ruby methods.
|Comment by Henrik Lindberg [ 2015/05/04 ]|
merged to 3.x at: 761ccb5
|Comment by Eric Thompson [ 2015/05/06 ]|
any tips on how to reproduce this? i'm missing how this is useful
|Comment by Thomas Hallgren [ 2015/05/06 ]|
I tried this and it's actually not possible to reproduce from Puppet. The parser converts Array to Array[Data], Hash to Hash[Scalar,Data] and Optional to Optional[Undef] so the problem with missing contained types never surfaces in Puppet. It can only occur when the types are created from Ruby.
|Comment by Nicholas Fagerlund [ 2015/05/14 ]|
This ticket doesn't describe the significance of the bug. Could someone please update the description with whether this is an internal-only fix, or whether it affects extension APIs?
|Comment by Henrik Lindberg [ 2015/05/14 ]|
This is an internal only fix