Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid interface generated by --sig #109

Closed
KevinRansom opened this issue Jan 26, 2015 · 0 comments
Closed

Invalid interface generated by --sig #109

KevinRansom opened this issue Jan 26, 2015 · 0 comments
Labels

Comments

@KevinRansom
Copy link
Member

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants