Skip to content

Commit

Permalink
workaround nim-lang#14420
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Jul 8, 2020
1 parent d84812c commit 77d3520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/decls.nim
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ proc byLent*[T](a: T): lent T {.inline.} =
# x = fn(x) # would give: Error: expression 'fn(x)' has no type (or is ambiguous)
x = fn(x.byLent) # works
doAssert x == 3*2
a
result = a # just `a` hits: bug #14420

0 comments on commit 77d3520

Please sign in to comment.