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

[K2] KMP: Expect/actual enums have expect modifiers but don't have actual for builtin functions #3704

Open
atyrin opened this issue Jul 22, 2024 · 1 comment
Labels
bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888

Comments

@atyrin
Copy link
Contributor

atyrin commented Jul 22, 2024

Declare an expect enum and actual counterparts

// commonMain
expect enum class EventType {
    ADDED, CHANGED, REMOVED
}

// platforms
actual enum class EventType {
    ADDED, CHANGED, REMOVED
}

In generated documentation. expect parts have the modifiers for valueOf/values functions but actual don't. It doesn't affects user-defined functions.
image

K1 both functions are without expect-actual modifiers:

image
@atyrin atyrin added bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888 labels Jul 22, 2024
@IgnatBeresnev
Copy link
Member

expect should be removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888
Projects
None yet
Development

No branches or pull requests

2 participants