t19700.nim 228 B

1234567891011
  1. discard """
  2. errormsg: "type mismatch: got <Obj, Obj, template (x: untyped, y: untyped): untyped>"
  3. """
  4. type Obj = object
  5. proc apply[T, R](a, b: T; f: proc(x, y: T): R): R = f(a, b)
  6. let a, b = Obj()
  7. discard apply(a, b, `!=`)