Skip to content

#nowarn to be interpreted consistently in fsi #10535

Open
@smoothdeveloper

Description

@smoothdeveloper

with nowarn.fsx containing the following:

#nowarn "1104"
let ``@nowarn`` = 1

trying to invoke it with

dotnet fsi nowarn.fsx

getting

nowarn.fsx(2,5): warning FS1104: Identifiers containing '@' are reserved for use in F# code generation

If I try to do the same by pasting the contents in interactive session, it hides the warning.

The work around is to use --nowarn when invoking fsi.

Would it make sense to also hide the warnings in the first case?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions