Dispatching on native array types fails with optimization switched on #4090
Labels
data types
Arrays, lists, hashes, pair objects, etc.
native types
anything related to signed or unsigned native ints, or num, or str
The Problem
Expected Behavior
Actual Behavior
Additional notes: running this code with
--optimize=off
, makes it work as expected. And since the optimizer is responsible for the "cannot ever dispatch" error, this feels like it is incorrectly deciding it will not be able to dispatch, whereas it clearly can.Additional data-point: changing the call to:
foo($@a)
also makes it work, even with the optimization on. So perhaps it's because it doesn't realize that a native array is already an item?The text was updated successfully, but these errors were encountered: