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

Support default enum arguments, Kotlin 2.0.20 #11

Merged
merged 3 commits into from
Aug 24, 2024
Merged

Conversation

natario1
Copy link
Member

It's now possible to define function with default args of some serializable enum type:

// Native
@KneeEnum enum class Color { Black, White }
@Knee fun paint(color: Color = Color.Black) { ... }

// JVM
paint()

Fixes #8

@natario1 natario1 changed the title Support default enum arguments Support default enum arguments, Kotlin 2.0.20 Aug 24, 2024
@natario1 natario1 merged commit fdf3baf into main Aug 24, 2024
2 checks passed
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.

Enum default arguments
1 participant