timotheecour / Nim

Nim is a compiled, garbage-collected systems programming language with a design that focuses on efficiency, expressiveness, and elegance (in that order of priority).
http://nim-lang.org/
Other
2 stars 0 forks source link

MsgOrigin doesn't honor listfullpaths:off #463

Open timotheecour opened 3 years ago

timotheecour commented 3 years ago

links

D20201216T123530

eg:

nim c -r -d:case1 --listfullpaths:off $timn_D/tests/nim/all/t11521.nim
t11521.nim(5, 1) template/generic instantiation from here
t11521.nim(10, 14) Error: expression 'fn[float32]()' cannot be called
    fn[float32]()
               ^
/Users/timothee/git_clone/nim/Nim_devel/compiler/semcall.nim(414, 19) compiler msg initiated here [MsgOrigin]
timotheecour commented 3 years ago

that's because of: compiler/msgs.nim:

template instLoc*(): InstantiationInfo = instantiationInfo(-2, fullPaths = true)

fullPaths = true should depend on --filenames:abs

refs https://github.com/nim-lang/Nim/pull/17746