Skip to content

F# compiler option --nowarn does not accept alphanumeric warning codes #3626

@mishra14

Description

@mishra14

From @mishra14 on September 21, 2017 20:1

Stemming from: NuGet/Home#5913

It seems that F# compiler option --nowarn only accepts integers. Which seems fine based on the description on the docs page.

But the docs also state that the option is equivalent to C# compiler option /nowarn. But the C# compiler option accepts alpha-numeric codes like /nowarn:CS0219

F:\validation\test\addpkg>csc Program.cs /nowarn:NU1603;CS0219
Microsoft (R) Visual C# Compiler version 2.4.0.62025 (a0507c1e)
Copyright (C) Microsoft Corporation. All rights reserved.


F:\validation\test\addpkg>

IMO, either the two should be equivalent or maybe the docs should not state them as equivalent.

Please let me know, if this is not the right place for it or it needs to be in fslang-suggestions.

Copied from original issue: fsharp/fsharp#785

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions