tambprocvar.nim 463 B

1234567891011121314151617181920
  1. discard """
  2. action: reject
  3. cmd: "nim check $file"
  4. nimout: '''
  5. tambprocvar.nim(15, 11) Error: ambiguous identifier 'foo' -- use one of the following:
  6. tambprocvar.foo: proc (x: int){.noSideEffect, gcsafe.}
  7. tambprocvar.foo: proc (x: float){.noSideEffect, gcsafe.}
  8. '''
  9. """
  10. block:
  11. proc foo(x: int) = discard
  12. proc foo(x: float) = discard
  13. let x = foo
  14. block:
  15. let x = `+` #[tt.Error
  16. ^ ambiguous identifier '+' -- use one of the following:]#