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

VerifyError on feature that does not return #2477

Closed
fridis opened this issue Jan 18, 2024 · 0 comments · Fixed by #2485
Closed

VerifyError on feature that does not return #2477

fridis opened this issue Jan 18, 2024 · 0 comments · Fixed by #2485
Labels
bug Something isn't working jvm backend related to the JVM bytecode backend and variantes (-classes, -jar, etc.)

Comments

@fridis
Copy link
Member

fridis commented Jan 18, 2024

With this code

a Any => do
_ := a

I get

 > ./build/bin/fz tj.fz

error 1: java.lang.VerifyError: (class: fzC_a, method: fzRoutine signature: ()LfzI_Any;) Unable to pop operand off an empty stack
	at fzC_universe.fzRoutine(Unknown Source)
	at fzC_universe.fz_run(Unknown Source)
	at dev.flang.be.jvm.runtime.FuzionThread.lambda$new$1(FuzionThread.java:90)
	at dev.flang.util.Errors.runAndExit(Errors.java:845)
	at dev.flang.be.jvm.runtime.FuzionThread.lambda$new$2(FuzionThread.java:99)
	at java.base/java.lang.Thread.run(Thread.java:833)


*** fatal errors encountered, stopping.
@fridis fridis added bug Something isn't working jvm backend related to the JVM bytecode backend and variantes (-classes, -jar, etc.) labels Jan 18, 2024
michaellilltokiwa added a commit to michaellilltokiwa/fuzion that referenced this issue Jan 23, 2024
michaellilltokiwa added a commit to michaellilltokiwa/fuzion that referenced this issue Jan 23, 2024
michaellilltokiwa added a commit to michaellilltokiwa/fuzion that referenced this issue Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jvm backend related to the JVM bytecode backend and variantes (-classes, -jar, etc.)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant