Open
Description
I'm using Crystal 1.16.3 [3f369d2c7] (2025-05-12), LLVM: 18.1.8, Default target: x86_64-unknown-linux-gnu
x = 0x12345678u32 # mind the u32
x, y = 0x1234u16, 0x1234u16 # assignment to both same and fresh variable
ptr1 = pointerof(x).as(UInt8*)
p Slice.new(ptr1, 2) # Bytes[184, 0] # bad
ptr2 = pointerof(y).as(UInt8*)
p Slice.new(ptr2, 2) # Bytes[52, 18] # good