Skip to content

Hello World comment: several statements need braces - #10

Merged
O6lvl4 merged 1 commit into
mainfrom
hello-world-braces-note
Oct 5, 2026
Merged

O6lvl4 merged 1 commit into
mainfrom
hello-world-braces-note

Conversation

@O6lvl4

@O6lvl4 O6lvl4 commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

The Hello World comment says no braces are needed for a single expression. It did not say what happens with a second indented line, and that led to almide/almide#3370: hoge() indented under fn main() -> Unit = is read as a new top-level declaration. The comment now says so and shows the braced form. The compiler side (a hint that builds the braced rewrite) is almide/almide#3370.

…rt of the body and several statements need braces

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@O6lvl4
O6lvl4 merged commit 7e56ec1 into main Oct 5, 2026
1 check passed
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.

1 participant