Skip to content

Object expressions don't work with IWSAMs #16213

@vzarytovskii

Description

@vzarytovskii
type IOperation =
        static abstract member Execute: unit -> unit

let _ =
    { new IOperation with
        static member Execute() = ()
        //member _.Execute() = ()
    }

Results in internal exception.

Should provide meaningful message instead, or parse error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions