Skip to content

Different analysis of a method call depending on parentheses #14194

@DedSec256

Description

@DedSec256
open System

let f x  = (DateTime.UtcNow.ToBinary) x
let f x = DateTime.UtcNow.ToBinary x

image

Expected behavior

Behavior is consistent between both cases. (Correct type inference and no errors in the second case?)

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.

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions