Skip to content

Generic parameter in value binding does require a space before the colon. #11809

@nojaf

Description

@nojaf

In section Right-pad value and function argument type annotations, I believe there is an edge case to this rule.

let e<'t> : int =
    // a comment makes things multiline
    8

The space before the colon is necessary in this case to maintain valid code.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions