Skip to content

Fix multiline function type in parens causing compiler error#3225

Merged
nojaf merged 2 commits into
fsprojects:mainfrom
nojaf:fix-3043
Feb 27, 2026
Merged

Fix multiline function type in parens causing compiler error#3225
nojaf merged 2 commits into
fsprojects:mainfrom
nojaf:fix-3043

Conversation

@nojaf

@nojaf nojaf commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

When a parenthesized function type (Type.Paren wrapping Type.Funs) goes multiline, the inner -> arrows now get extra indentation so the compiler doesn't confuse them with outer function type arrows.

Fixes #3043

When a parenthesized function type (Type.Paren wrapping Type.Funs) goes
multiline, the inner -> arrows now get extra indentation so the compiler
doesn't confuse them with outer function type arrows.

Fixes fsprojects#3043
@nojaf nojaf merged commit 46b2600 into fsprojects:main Feb 27, 2026
6 checks 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.

Invalid multiline function type

1 participant