ringabout / 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).

Home Page:https://nim-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lent parameter: invalid C codegen

ringabout opened this issue · comments

nim-lang#16898

  elif n.kind in {nkCommand, nkCall} and n[0].kind in {nkIdent, nkSym, nkOpenSymChoice, nkClosedSymChoice} and
      considerQuotedIdent(c, n[0]).s == "lent":
    localError(c.config, n[0].info, "'" & considerQuotedIdent(c, n[0]).s & "' is only allowed in return types!")
    result = semTypeNode(c, n, nil)

Now here is a PR
nim-lang#17628