I stumbled upon this precondition failure (crash) while rewriting some tests. It is triggered by some esoteric conditions. In short, the arrays should contain Element where Element == Element.Element or its contents should be reinterpreted as Element.Element in these methods (the ones based on Contiguous sequences). The latter is more lenient, so I will try that first.
let _ = U32(load: [] as [DoubleInt<U16>])
let _ = U32.init( [] as [DoubleInt<U16>])
let _ = U32.exactly([] as [DoubleInt<U16>])
let _ = U64(load: [] as [DoubleInt<U32>])
let _ = U64.init( [] as [DoubleInt<U32>])
let _ = U64.exactly([] as [DoubleInt<U32>])
I stumbled upon this precondition failure (crash) while rewriting some tests. It is triggered by some esoteric conditions. In short, the arrays should contain
Element where Element == Element.Elementor its contents should be reinterpreted asElement.Elementin these methods (the ones based onContiguoussequences). The latter is more lenient, so I will try that first.