Created
May 3, 2019 17:44
-
-
Save vladfaust/eec501c4ad5a9353d2991db5aaf41623 to your computer and use it in GitHub Desktop.
Sorbet is cool, but polished Crystal is better
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 A | |
def sum(a, b) | |
a + b | |
end | |
end | |
A.new.sum("foo", 42) # Compilation-time error, `String` cannot be summed with `Int` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment