Open
Description
This type alias:
type T =
{| Id: Guid
|} []
leads to error: Unexpected symbol '[' in member definition
Replacing []
with another generic type (seq
, list
, option
) leads to similar error: Unexpected identifier in member definition
Expected behavior
Code should be accepted by compiler.
Actual behavior
Compiler error when {|
and |}
are vertically aligned and there is generic type after |}
Known workarounds
- Indent closing bracket one space further.
- Use
T<A>
generic type syntax.
Related information
dotnet --version
8.0.204
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
New