tambiguousemit.nim 459 B

12345678910111213
  1. discard """
  2. cmd: "nim check $options $file" # use check to assure error is pre-codegen
  3. matrix: "; --backend:js" # backend shouldn't matter but at least check js
  4. """
  5. proc foo(x: int) = discard
  6. proc foo(x: float) = discard
  7. {.emit: ["// ", foo].} #[tt.Error
  8. ^ ambiguous identifier 'foo' -- use one of the following:
  9. tambiguousemit.foo: proc (x: int){.noSideEffect, gcsafe.}
  10. tambiguousemit.foo: proc (x: float){.noSideEffect, gcsafe.}]#