tfail_implicit_ambiguous.nim 208 B

1234567891011
  1. discard """
  2. errormsg: "ambiguous call"
  3. """
  4. type
  5. A[T] = object
  6. C = object
  7. proc test[T: A](param: T): bool = false
  8. proc test(param: A): bool = true
  9. doAssert test(A[C]()) == true # previously would pass