Created
October 20, 2016 20:50
-
-
Save DougEverly/e2f0974405abe73f223af2edab3ac332 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| struct Int32 | |
| def to(t : Int64.class) | |
| self.to_i64 | |
| end | |
| end | |
| a = 13_i32 | |
| b = a.to(Int64) | |
| b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment