SerenityOS / jakt

The Jakt Programming Language
BSD 2-Clause "Simplified" License
2.77k stars 244 forks source link

Disallow assigning Optional<void>, allow yielding void functions and nothing #1550

Closed 0GreenClover0 closed 5 months ago

0GreenClover0 commented 6 months ago

Fixes #1544. First sample now shows an error "Cannot assign Optional<void> to a variable". Second sample prints "PASS".

stale[bot] commented 5 months ago

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!

0GreenClover0 commented 5 months ago

Not stale

alimpfard commented 5 months ago

I'm not 100% on how we want to treat void, but we can fix (or break) that in the future if needed. LGTM.