Created
December 2, 2019 02:36
Compiler bug reproduction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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