From 77d3520cae9562e1c6133c869550dfa1b8041146 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Wed, 1 Jul 2020 18:41:48 -0700 Subject: [PATCH] workaround #14420 --- lib/std/decls.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/decls.nim b/lib/std/decls.nim index 07bd31ff867a9..417c0df22ff9a 100644 --- a/lib/std/decls.nim +++ b/lib/std/decls.nim @@ -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