t11166.nim 188 B

123456789101112131415161718192021
  1. discard """
  2. output: '''
  3. test1
  4. test2
  5. '''
  6. """
  7. import jsffi
  8. type
  9. C = object
  10. props: int
  11. var c: C
  12. when compiles(c.props):
  13. echo "test1"
  14. when not compiles(d.props):
  15. echo "test2"