summary refs log tree commit diff stats
path: root/compiler/main.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-05-27 22:30:36 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-05-27 22:30:36 +0200
commit545b1582cddb27aba75ac791f8f89e33c6d1ca5a (patch)
tree29b2bde4871cec44d8c508e648299fd62465129b /compiler/main.nim
parent40ec7be45c7d9f05f46237379c4e436d564e42fd (diff)
downloadNim-545b1582cddb27aba75ac791f8f89e33c6d1ca5a.tar.gz
refactoring: make projectMainIdx typesafe
Diffstat (limited to 'compiler/main.nim')
-rw-r--r--compiler/main.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main.nim b/compiler/main.nim
index fe95f3b9b..3b5370fa5 100644
--- a/compiler/main.nim
+++ b/compiler/main.nim
@@ -261,7 +261,7 @@ proc mainCommand*(graph: ModuleGraph; cache: IdentCache) =
   of "parse":
     conf.cmd = cmdParse
     wantMainModule(conf)
-    discard parseFile(FileIndex conf.projectMainIdx, cache, conf)
+    discard parseFile(conf.projectMainIdx, cache, conf)
   of "scan":
     conf.cmd = cmdScan
     wantMainModule(conf)