Skip to content

Instantly share code, notes, and snippets.

@ReneSac
Created February 3, 2014 23:25
Show Gist options
  • Save ReneSac/86b2f0db65606c72e5e1 to your computer and use it in GitHub Desktop.
Save ReneSac/86b2f0db65606c72e5e1 to your computer and use it in GitHub Desktop.
# 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