Skip to content

Arbitrary nonsense attributes can be added to type extensions #7394

@cartermp

Description

@cartermp

Consider the following:

open System

[<Hello.my.name.is.Don.Syme>]
type String with
    member this.Doot() = this.Length

image

This should emit an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions