tnotnil.nim 179 B

1234567891011121314
  1. discard """
  2. errormsg: "type mismatch"
  3. line: 13
  4. """
  5. {.experimental: "notnil".}
  6. type
  7. PObj = ref TObj not nil
  8. TObj = object
  9. x: int
  10. proc q2(x: string) = discard
  11. q2(nil)