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

jvm: Add new interface dev.flang.be.jvm.runtime.AnyI and use it for fzVref #1897

Merged
merged 1 commit into from Aug 23, 2023

Conversation

fridis
Copy link
Member

@fridis fridis commented Aug 23, 2023

All the refs in a choice type are stored in the same value field. Since the type of these fields could be an interface, they are not assignable to runtime.Any, so we use a new interface runtime.AnyI that is also implemented by these interfaces.

This fixed the class verify error when running tests/stdin using the JVM backend.

…zVref

All the refs in a choice type are stored in the same value field. Since the type
of these fields could be an interface, they are not assignable to runtime.Any,
so we use a new interface runtime.AnyI that is also implemented by these
interfaces.
@michaellilltokiwa michaellilltokiwa merged commit 872529b into main Aug 23, 2023
5 checks passed
@michaellilltokiwa michaellilltokiwa deleted the jvm_add_AnyI branch August 23, 2023 14:48
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.

None yet

2 participants