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

vars in vars #2017

Closed
alixander opened this issue Jul 25, 2024 · 0 comments · Fixed by #2052
Closed

vars in vars #2017

alixander opened this issue Jul 25, 2024 · 0 comments · Fixed by #2052

Comments

@alixander
Copy link
Collaborator

this should work

vars: {
    Apple: {
        shape:circle
        label:Granny Smith
    }
    Cherry: {
        shape:circle
        label:Rainier Cherry
    }
    SummerFruit: {
        xx: ${Apple}   # Could not resolve
        cc: ${Cherry}  # Could not resolve
        xx -> cc
    }
}

x: ${Apple}   # ok
c: ${Cherry}  # ok
x -> c
sf: ${SummerFruit} # doesn't get this far
```d2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant