tcompiletime_counter.nim 284 B

12345678910111213141516171819202122232425
  1. discard """
  2. output: '''id 4'''
  3. """
  4. import mcompiletime_counter
  5. const intId = getUniqueId()
  6. echo "id ", intId
  7. #!EDIT!#
  8. discard """
  9. output: '''id 4 5'''
  10. """
  11. import mcompiletime_counter
  12. const
  13. intId = getUniqueId()
  14. floatId = getUniqueId()
  15. echo "id ", intId, " ", floatId