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.53k stars 1.47k forks source link

[minor][error message] `Error: internal error: expr(skType); unknown symbol` #8301

Open timotheecour opened 6 years ago

timotheecour commented 6 years ago

a better error here would be to point out that void can't be used as an expression

#D20180712T162230
proc foo_p1():auto=void
template foo_T4():auto=void

when true:
  # Error: internal error: expr: var not init result_115006
  foo_p1()
bung87 commented 2 years ago

nim 1.7.1
Error: internal error: getTypeDescAux(tyVoid)