tissue966.nim 151 B

12345678910111213
  1. discard """
  2. errormsg: "type mismatch: got <PTest>"
  3. """
  4. type
  5. PTest = ref object
  6. proc test(x: PTest, y: int) = discard
  7. var buf: PTest
  8. buf.test()