Skip to content

Invalid interface generated by --sig #109

Description

@KevinRansom

The compiler generates an invalid interface definition when compiling

namespace Test
module ParamArgs =
let mytest ([<System.ParamArray>] args) = ()

Building as follows results in an error:

$ fsharpc -a --sig:paramargs.fsi paramargs.fs
F# Compiler for F# 3.1 (Open Source Edition)
Freely distributed under the Apache 2.0 Open Source License
$ fsharpc -a paramargs.fsi paramargs.fs
F# Compiler for F# 3.1 (Open Source Edition)
Freely distributed under the Apache 2.0 Open Source License

paramargs.fsi(3,18): warning FS0046: The identifier 'params' is reserved for future use by F#

paramargs.fsi(3,29): error FS0613: Syntax error in labelled type argument

Apparently [<System.ParamArray>] should be used in the fsi instead of "params".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions