Skip to content

Instantly share code, notes, and snippets.

@maiha
Created January 1, 2017 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maiha/3329c026396183776b5ff4c3a799edac to your computer and use it in GitHub Desktop.
Save maiha/3329c026396183776b5ff4c3a799edac to your computer and use it in GitHub Desktop.
module Core
end
class Base(T)
include Core
end
class Foo < Base(String)
end
class Bar < Base(Int32)
end
Foo.new.as(Core).class.name
# Invalid memory access (signal 11) at address 0x0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment