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

TODO: Support for functions with none return type #6

Closed
AjaniBilby opened this issue Jan 7, 2024 · 1 comment
Closed

TODO: Support for functions with none return type #6

AjaniBilby opened this issue Jan 7, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@AjaniBilby
Copy link
Member

No description provided.

@AjaniBilby AjaniBilby added the enhancement New feature or request label Jan 7, 2024
@AjaniBilby AjaniBilby self-assigned this Jan 7, 2024
@AjaniBilby
Copy link
Member Author

This has already been implemented, I think during #11, but not entirely sure when I did it.
But this does compile so... 🤷

fn main(): none {
  return;
}
(module
  (type (;0;) (func))
  (func (;0;) (type 0)
    return
    unreachable)
  (memory (;0;) 1 1)
  (global (;0;) (mut i32) (i32.const 0))
  (export "_start" (func 0))
  (export "main" (func 0)))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant