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

Introduce enums in Dialog #17432

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

Conversation

Arthur-Milchior
Copy link
Member

In order to improve typing

Copy link
Member

@david-allison david-allison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't feel like a major improvement, but OK

Comment on lines +35 to +37
companion object {
fun Int.toType() = Type.entries[this]
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as in other PRs, be explicit

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry, I'm not sure what you want here.
That the name is ImportDialogType instead of ImportDialog.Type ?
That the toType is documented?

Comment on lines +262 to +263
companion object {
fun Int.toType() = Type.entries[this]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@david-allison david-allison added the Needs Author Reply Waiting for a reply from the original author label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Author Reply Waiting for a reply from the original author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants