Skip to content

Instantly share code, notes, and snippets.

@Freezerburn
Created October 18, 2014 23:49
Show Gist options
  • Save Freezerburn/b15392a19e35cb015d46 to your computer and use it in GitHub Desktop.
Save Freezerburn/b15392a19e35cb015d46 to your computer and use it in GitHub Desktop.
from hashes import THash
proc hash(direction: Direction): THash =
return hash(ord(direction))
main.nim(25, 15) Error: type mismatch: got (range 0..7(int))
but expected one of:
main.hash(direction: Direction): THash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment