-
-
Save plambert/cf7f6f3ef465d86001d0a75f04a3de1a to your computer and use it in GitHub Desktop.
Strange type casting…
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
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