nim-lang / Nim

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
https://nim-lang.org
Other
16.55k stars 1.47k forks source link

give some switch to switch the hard code `hints=off` #11561

Open kitech opened 5 years ago

kitech commented 5 years ago

https://github.com/nim-lang/Nim/blob/79c721d41814b4ec5f5c6e32c2093125cb41258c/compiler/sempass2.nim#L915

Araq commented 5 years ago

I don't understand this issue. This should always be a compile-time failure, not a "hint".

kitech commented 5 years ago

I want to know where exactly raise the exception when this message show. I think switch hints=on will show more verbose info.

alaviss commented 5 years ago

Looking at the code for that switch: https://github.com/nim-lang/Nim/blob/79c721d41814b4ec5f5c6e32c2093125cb41258c/compiler/sempass2.nim#L900-L904

I doubt you'll get what you want with it on.