Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#23314: mentions that @import works with ZON now #23412

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sobolevn
Copy link
Contributor

@alexrp alexrp requested a review from mlugg March 30, 2025 14:45
@alexrp alexrp added this to the 0.14.1 milestone Apr 5, 2025
Co-authored-by: Jora Troosh <[email protected]>
@nurulhudaapon
Copy link

Currently I believe, Zon file can only be imported with manual type assertion, am I missing something?

const john: Person = @import("john.zon");

@tensorush
Copy link
Contributor

@nurulhudaapon, Since #22907 has been merged, this already works on master:

const john = @import("john.zon");

@alexrp alexrp removed this from the 0.14.1 milestone Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The Language Reference does not mention that @import can be used for ZON
5 participants