Skip to content

Instantly share code, notes, and snippets.

@plambert

plambert/test.cr Secret

Created October 26, 2022 22:53
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 plambert/cf7f6f3ef465d86001d0a75f04a3de1a to your computer and use it in GitHub Desktop.
Save plambert/cf7f6f3ef465d86001d0a75f04a3de1a to your computer and use it in GitHub Desktop.
Strange type casting…
class Foo
alias TheTypes = String | Int32 | Nil
def initialize
@table=Array(Array(TheTypes)).new
end
def foo(x : Array(TheTypes))
@table += x
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment