Skip to content

F# 10 #warnon not working ? #4279

@goswinr

Description

@goswinr

Thanks for bring Fable to F#10 !
Should F# 10's #warnon work in 5.0.0-alpha.17 ?

open System

type T() =
    [<Obsolete("Use something else")>]
    static member x = 1

let hi(_)=
    #nowarn "44" // Suppress warnings for obsolete usage
    let x = T.x
    #warnon "44" // Re-enable warnings for obsolete usage
    ()

I get a
Unexpected symbol # in binding (code 10)

Do I need to position or indent them differently?

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