Skip to content

Arbitrary nonsense attributes can be added to type extensions #7394

Closed

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.

Activity

  1. dsyme commented on Aug 16, 2019

    @dsyme
    Contributor

    Yup

  2. added this to the Backlog milestone on Aug 16, 2019
  3. KevinRansom commented on Sep 4, 2019

    @KevinRansom
    Contributor

    @cartermp, @dsyme.

    Theoretically this is a breaking change. Given that the attributes are garbage, we should be prepared to tell developers to fix their code. If they see the error.

    Kevin

  4. cartermp commented on Sep 4, 2019

    @cartermp
    ContributorAuthor

    Agreed

  5. modified the milestones: Backlog, 16.5 on Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions