minor bugfixes for 'func' and .borrow

This commit is contained in:
Araq 2020-06-23 10:58:55 +02:00
commit ebd1cc0265
2 changed files with 3 additions and 2 deletions

View file

@ -1756,7 +1756,7 @@ proc isRoutine*(s: PSym): bool {.inline.} =
proc isCompileTimeProc*(s: PSym): bool {.inline.} =
result = s.kind == skMacro or
s.kind == skProc and sfCompileTime in s.flags
s.kind in {skProc, skFunc} and sfCompileTime in s.flags
proc isRunnableExamples*(n: PNode): bool =
# Templates and generics don't perform symbol lookups.