timplicit_nodecl.nim 204 B

1234567891011121314
  1. discard """
  2. output: '''22
  3. 22'''
  4. """
  5. # test implicit nodecl
  6. block:
  7. {. emit: "var importMe = 22;" .}
  8. var
  9. a {. importc: "importMe" .}: int
  10. importMe {. importc .}: int
  11. echo a
  12. echo importMe