t7600_2.nim 302 B

123456789101112131415161718
  1. discard """
  2. errormsg: "type mismatch: got <Thin>"
  3. nimout: '''t7600_2.nim(17, 6) Error: type mismatch: got <Thin>
  4. but expected one of:
  5. proc test(x: Paper)
  6. expression: test tn'''
  7. """
  8. type
  9. Paper = ref object of RootObj
  10. Thin = object of Paper
  11. proc test(x: Paper) = discard
  12. var tn = Thin()
  13. test tn