Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Sep 10, 2021
1 parent 083a67a commit 5ed0a42
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions balls.nim
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ macro report(n: string) =
proc report(n: NimNode): NimNode =
result = getAst(report n)

when defined(nimLazySemcheck):
# for https://github.com/nim-lang/Nim/pull/18818, with -d:nimCompilerDebug
# the problem is that otherwise, `macro report*(ss: varargs[typed])` below
# causes an ambiguity, giving: `Error: ambiguous symbol in 'getAst' context: report n`
block:
type _ = typeof(report)

proc niceKind(n: NimNode): NimNode =
expectKind(n, nnkSym)
let kind = $n.symKind
Expand Down

0 comments on commit 5ed0a42

Please sign in to comment.