Skip to content

fix(compiler): give eval a void method for a form that can only throw - #196

Merged
parth-io merged 2 commits into
developfrom
fix/eval-form-that-only-throws
Oct 23, 2026
Merged

parth-io merged 2 commits into
developfrom
fix/eval-form-that-only-throws

Conversation

@parth-io

@parth-io parth-io commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #195

  • compile-expression gives the eval method a System.Void return type when the form can only throw, as the fn compiler does

…#195)

compile-expression gave the eval method (ast-type ast) as its return
type, which for a form that can only throw is a keyword, so
DefineMethod failed. Use System.Void there, as the fn compiler does.
@parth-io
parth-io merged commit 5feced4 into develop Oct 23, 2026
1 check passed
@parth-io
parth-io deleted the fix/eval-form-that-only-throws branch October 23, 2026 06:50
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.

eval cannot compile a form that can only throw

2 participants