Skip to content

Instantly share code, notes, and snippets.

@keidax
Created December 2, 2019 02:36
Compiler bug reproduction
# Just run `crystal run foo_object.cr`
require "spec"
lib LibAsdf
type VoidPtr = Void*
end
class FooObject
def to_unsafe
Pointer(Void).null
end
end
FooObject.new.to_unsafe.should eq(LibAsdf::VoidPtr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment