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

Cannot mark number-named fields as optional #876

Closed
lua-rocks opened this issue Dec 27, 2021 · 0 comments
Closed

Cannot mark number-named fields as optional #876

lua-rocks opened this issue Dec 27, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@lua-rocks
Copy link

lua-rocks commented Dec 27, 2021

Here is a vector class:

screenshot

It must necessarily have 2 values. I can't give them alphabetic names because for the position subclass they are x and y and for the size they are w and h, so I use numeric names [1] and [2].

This class accepts optionally 2 extra number-named fields and field "units". As you can see, I can mark units with a question mark, but I can't mark number fields (3 and 4 in this example) as optional.

PS: Also it would be cool if you could just let the fields be called 1, 2, 3... instead of [1], [2], [3]...

@sumneko sumneko added the bug Something isn't working label Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants