Skip to content

Incorrect warning about tupled arguments #14011

@gusty

Description

@gusty

As of F#7 an incorrect warning is being displayed.

Repro steps

type T = T with
    static member inline (?<-) (f, x, y) = f x y

Expected behavior

Compiles without warnings.

Actual behavior

Compiles with warning:

      static member inline (?<-) (f, x, y)   = f x y ;;
  --------------------------^^^

stdin(12,27): warning FS1173: Infix operator member '?<-' has 3 initial argument(s). Expected a tuple of 2 arguments, e.g. static member (+) (x,y) = ...

Known workarounds

Ignore it.

Related information

Microsoft (R) F# Interactive version 12.0.5.0 for F# 7.0

Microsoft Visual Studio Community 2022 (64-bit) - Preview
Version 17.4.0 Preview 2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Compiler-CheckingType checking, attributes and all aspects of logic checkingBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.help wanted

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions