told_bind_expr.nim 329 B

12345678910111213141516
  1. discard """
  2. errormsg: "ambiguous call"
  3. file: "told_bind_expr.nim"
  4. line: 13
  5. """
  6. # Pre-0.9 deprecated bind expression syntax
  7. proc p1(x: int8, y: int): int = return x + y
  8. proc p1(x: int, y: int8): int = return x - y
  9. template tempBind(x, y): untyped =
  10. (bind p1(x, y)) #ERROR_MSG ambiguous call
  11. echo tempBind(1'i8, 2'i8)