You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
StatementContinued advice and ON-RAMP still describe the pre-#863 rule #869
bugSomething is broken or behaves incorrectlydocumentationDocs, prose, diagrams, READMEs, ADRspriority:p3Low - nice to havescope:repoConfined to this repositorystatus:readyFully specified and ready to be picked up
The failures stayed hidden because test/test_jcs.ml (#865) stopped the test runner from compiling. Owner ruling: #863's grammar wins. #868 repoints #862's two tests to the shape that still reaches the diagnostic, a statement whose head is a parenthesised if/match that is then called:
(if c { () } else { () })(3);
Still open, and the reason for this issue:StatementContinued's message describes the pre-#863 rule. It is still worded for the old shape:
the if statement before ( was read as a call on its value. A statement if or match followed by (, [, *, -, & or | continues the expression (docs/ON-RAMP.adoc, "Statements and ;"). Put ; after its closing }.
For the parenthesised shape, "put ; after its closing }" doesn't help. The (…) is deliberate, and the fix is to drop the call or bind the value. docs/ON-RAMP.adoc's "Statements and ;" section probably also still teaches the #644 rule. Both need rewording to #863's grammar (lib/typecheck.ml, around line 168 and 288).
This report puts the disputed program, the owner ruling and the exact diagnostic text side by side, so the gap between what the compiler does and what it says is easy to see.
After #863, a statement if/match ends at its closing }. StatementContinued now fires only when the statement starts with a parenthesised if/match that is then called, as in (if c { () } else { () })(3);. The message and the "Statements and ;" section of docs/ON-RAMP.adoc still describe the #644 rule. For the parenthesised case they suggest "put ; after its closing }", which doesn't help. The useful advice is to drop the call or bind the value. The fix is to reword both to match #863's grammar (lib/typecheck.ml around lines 168 and 288).
One question for whoever rewords it: can any of the other listed continuations ([, *, -, &, |) still reach this diagnostic under #863, or is (...)( the only remaining trigger?
#862 - feat(diagnostics): locate E0104, name a continued if/match, add char_to_string [closed] #808 - feat(parser): a mid-block match self-terminates like if (#644) [merged]
📝 Issue Planner
Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.
Create Plan
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord!
bugSomething is broken or behaves incorrectlydocumentationDocs, prose, diagrams, READMEs, ADRspriority:p3Low - nice to havescope:repoConfined to this repositorystatus:readyFully specified and ready to be picked up
Activity
whatproblem-ai commentedon Dec 5, 2026
This report puts the disputed program, the owner ruling and the exact diagnostic text side by side, so the gap between what the compiler does and what it says is easy to see.
After #863, a statement
if/matchends at its closing}.StatementContinuednow fires only when the statement starts with a parenthesisedif/matchthat is then called, as in(if c { () } else { () })(3);. The message and the "Statements and;" section ofdocs/ON-RAMP.adocstill describe the #644 rule. For the parenthesised case they suggest "put;after its closing}", which doesn't help. The useful advice is to drop the call or bind the value. The fix is to reword both to match #863's grammar (lib/typecheck.mlaround lines 168 and 288).One question for whoever rewords it: can any of the other listed continuations (
[,*,-,&,|) still reach this diagnostic under #863, or is(...)(the only remaining trigger?🏆 Clarity Score: 90% - Clear and concise! 🎯
⌨️ Commands · 💬 Have feedback? Tell us · 🎯 New here? Add WhatProblem to your repo · 🔒 Privacy
coderabbitai commentedon Dec 5, 2026
🔗 Related PRs
#862 - feat(diagnostics): locate E0104, name a continued if/match, add char_to_string [closed]
#808 - feat(parser): a mid-block
matchself-terminates likeif(#644) [merged]📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!