Skip to content

Signature file makes seq<int> instead of int seq #15268

@nojaf

Description

@nojaf

I'm not entirely sure about this one and it really is a nitpick.

Repro steps

module Foo

let s = seq { 1 }
let a = [| 1 |]
let l = [ 1 ]

leads to

module Foo

val s: seq<int>

val a: int array

val l: int list

Expected behaviour

The style guide seems to prefer postfix style for core collections.

I would expect int seq here.

Actual behaviour

seq<int> was produced.

Related information

FCS: FSharpCheckFileResults.GenerateSignature

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions