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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exported enum instance not guaranteed #13

Closed
neovov opened this issue Feb 7, 2022 · 1 comment
Closed

Exported enum instance not guaranteed #13

neovov opened this issue Feb 7, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@neovov
Copy link

neovov commented Feb 7, 2022

Hi,

Feel free to rename this issue so it is clearer for you 馃槈 .

With this Kotlin enum:

@KustomExport
public enum class Bar() {
    FIRST, SECOND
}

And this TypeScript code:

const bar = fooInstance.bar // Bar_FIRST
if (bar === Bar_FIRST) {
  console.log('First');
}

The enum instance returned on fooInstance is not guaranteed to be an exported instance of Bar (for example in this case there will be no console.log).

(Hi @glureau 馃憢 )

@glureau glureau self-assigned this Feb 8, 2022
@glureau glureau added the bug Something isn't working label Feb 8, 2022
@glureau
Copy link
Collaborator

glureau commented Feb 8, 2022

Fixed by 76f4584
Available in 0.2.0

@glureau glureau closed this as completed Feb 8, 2022
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