Skip to content

FS3356 Extension members #19539

@pezipink

Description

@pezipink

The following code used to work

module Test =
    type Holding.Position with 
        member this.X = ""
        member this.Y = ""

    type Reporting.Position with 
        member this.A = ""
        member this.B = ""

Where these types are declared somewhere else. In the new compiler I now get:

Extension members extending types with the same simple name 'Position' but different fully qualified names cannot be defined in the same module. Consider defining these extensions in separate modules.

I have reported this is a bug since this has always worked over many versions. The error is very specific though, is this a new behaviour and breaking change?

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions