Skip to content

Instantly share code, notes, and snippets.

@GrundleTrundle
Created March 6, 2018 22:29
Show Gist options
  • Save GrundleTrundle/de42f236d3be74def27da86fa47c88af to your computer and use it in GitHub Desktop.
Save GrundleTrundle/de42f236d3be74def27da86fa47c88af to your computer and use it in GitHub Desktop.
proc go() =
var
edges: seq[(int32, int32)]
x : int32
for a, b in edges: # Expecting a and b to infer as int32 (compiling on 64 bit)
x = a
x = b
Compiler output:
test.nim(7, 7) Error: type mismatch: got <int> but expected 'int32'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment