Multiline type arguments parse issue #15171
Labels
Area-Compiler-Syntax
lexfilter, indentation and parsing
Bug
Impact-Low
(Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone
Hello,
I believe we may have found a lexer bug.
Repro steps
onKey
is valid code whileonKey2
is not. (online tool).The difference is that
onKey
has an additional space before the closing>
ofFoo
.In both cases, there is no problem with
IEvent
. So it only seems to manifest itself in nested situations.Expected behaviour
I'm not sure if this needs another relaxation, but I assume the alignment of the identifier and closing
>
is allowed.Actual behaviour
In nested scenarios, this doesn't appear to be the case.
Known workarounds
Adding one extra space avoids the problem.
Related information
See fsprojects/fantomas#2852
The text was updated successfully, but these errors were encountered: