Skip to content

Return type overloading not supported by op_Implicit. #2564

Open
@nimzi

Description

@nimzi

Description

Multiple versions of op_Implicit are not supported.

Repro code

type MyType = { Field : int}
        with
        static member op_Implicit(s:string):int = failwith "Unimplemented"
        static member op_Implicit(s:string):float = failwith "Unimplemented"

Expected and actual results

Native dotnet comiles while fable gives an error:
FABLE: Cannot have two module members with same name:

Related information

  • Fable version: 3.4.2
  • Operating system: MacOS

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