That's a weird issue Indeed! Can you check if you have saved your file. Or that you are compiling the correct one? (maybe "cat twitter.nim" reveals the issue?).
Also check your imports if there is anything fishy going on. Then if you have triple checked and it's still not working, I would consider cleaning the nim cache, just remove everything that's in there, and recompile with "nim c -f -r twitter.com"