tor_isnt_better.nim 219 B

12345678910111213141516171819
  1. discard """
  2. errormsg: "ambiguous call;"
  3. line: 16
  4. """
  5. # bug #8568
  6. type
  7. D[T] = object
  8. E[T] = object
  9. proc g(a: D|E): string = "foo D|E"
  10. proc g(a: D): string = "foo D"
  11. proc test() =
  12. let x = g D[int]()
  13. test()