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

add type for Machine.current #8

Merged
merged 1 commit into from
Aug 11, 2021
Merged

add type for Machine.current #8

merged 1 commit into from
Aug 11, 2021

Conversation

MrGreenTea
Copy link
Contributor

See #7

@MrGreenTea
Copy link
Contributor Author

I would also love to type the setter but am to unexperienced with dart to know how to do union types

@renggli renggli merged commit 41159b4 into renggli:main Aug 11, 2021
@renggli
Copy link
Owner

renggli commented Aug 11, 2021

Thank you for the fix, that was a nasty bug.

Unfortunately Dart doesn't support union types (yet). Only workaround I see is to have different accessors?

@MrGreenTea MrGreenTea deleted the MrGreenTea-patch-1 branch August 12, 2021 06:37
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.

2 participants