You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import order affects which generic instantiation gets cached, resulting in surprising behavior when unrelated code changes
there's no way to "recover" from a generic instantiation, see example below; note that the "first-arrived" instantiation deepDownHidden1 could be hidden really deep inside some code and it'd be hard to find where or why proc $(a: FileIndex): string = "FOO" in main.nim isn't picked up in a more complex example
# as is it shows:
(line: 0, col: 0, fileIndex: ...)
# flip order of import t10297c vs import t10297d in main:
(line: 0, col: 0, fileIndex: 0)
# comment both import t10297c and import t10297d
(line: 0, col: 0, fileIndex: FOO)
deepDownHidden1
could be hidden really deep inside some code and it'd be hard to find where or whyproc
$(a: FileIndex): string = "FOO"
in main.nim isn't picked up in a more complex exampleExample
Current Output
Expected Output
Additional Information
The text was updated successfully, but these errors were encountered: