[perl #128866] [BUG] Array[Int] ~~ Array[Numeric] is false

2017-05-17 Thread Sam S. via RT
> How come last one should be same? Aren't they different types? I'd expect > `Array[Int] ~~ Positional[Numeric]` to give False They are different types, but one could logically be considered a "subtype" of the other (and would be in some programming languages). E.g. in C#, a class Foo which

[perl #128866] [BUG] Array[Int] ~~ Array[Numeric] is false

2017-05-04 Thread Zoffix Znet via RT
On Sun, 07 Aug 2016 03:51:27 -0700, lloyd.fo...@gmail.com wrote: > say Array[Int] ~~ Array[Int]; # True > say Array[Int] ~~ Positional[Numeric]; # True > say Positional[Int] ~~ Positional[Numeric]; # True > say Array[Int] ~~ Array[Numeric]; # False > > The last one should be true as well. How

[perl #128866] [BUG] Array[Int] ~~ Array[Numeric] is false

2017-05-04 Thread Zoffix Znet via RT
On Sun, 07 Aug 2016 03:51:27 -0700, lloyd.fo...@gmail.com wrote: > say Array[Int] ~~ Array[Int]; # True > say Array[Int] ~~ Positional[Numeric]; # True > say Positional[Int] ~~ Positional[Numeric]; # True > say Array[Int] ~~ Array[Numeric]; # False > > The last one should be true as well. How

[perl #128866] [BUG] Array[Int] ~~ Array[Numeric] is false

2016-08-07 Thread via RT
# New Ticket Created by Lloyd Fournier # Please include the string: [perl #128866] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128866 > say Array[Int] ~~ Array[Int]; # True say Array[Int] ~~ Positional[Numeric]; # True