Created
March 6, 2018 22:29
-
-
Save GrundleTrundle/de42f236d3be74def27da86fa47c88af to your computer and use it in GitHub Desktop.
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
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