mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Using Box.unbox on a nil value with a union type causes: Invalid memory access (signal 11) at address 0x8 Related Crystal issue: https://github.com/crystal-lang/crystal/issues/11839 Fixes: https://gitlab.com/arctic-fox/spectator/-/issues/76
6 lines
142 B
Crystal
6 lines
142 B
Crystal
require "../spec_helper"
|
|
|
|
Spectator.describe "GitLab Issue #76" do
|
|
let(:value) { nil.as(Int32?) }
|
|
specify { expect(value).to be_nil }
|
|
end
|