-
-
Save ReneSac/86b2f0db65606c72e5e1 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
| # The fix I tried: | |
| of tyInt: | |
| result = handleRange(f, a, tyInt8, tyInt32) | |
| if result == isNone: | |
| result = handleRange(f, a, tyUInt8, tyUInt16) | |
| # I want this to work: | |
| var x:byte = 5 | |
| var y:int = x + 2 # Error: type mismatch: got (Byte) but expected 'int' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment