fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

[F#] Go to definition does not display attributes of the decompiled type

Open vsfeedback opened this issue 3 years ago • 0 comments

This issue has been moved from a ticket on Developer Community.


If you open the definition of any attribute in C# you will see

    //
    // Summary:
    //     Indicates that a class can be serialized. This class cannot be inherited.
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Delegate, Inherited = false)]
    public sealed class SerializableAttribute : Attribute
    {
        //
        // Summary:
        //     Initializes a new instance of the System.SerializableAttribute class.
        public SerializableAttribute();
    }

but in F# you will not see attributes

namespace System

open System


///<summary>Indicates that a class can be serialized. This class cannot be inherited.</summary>
type SerializableAttribute =
  inherit Attribute
  
  ///<summary>Initializes a new instance of the  class.</summary>
  new: unit -> unit

Fix that, please


Original Comments

XperiAndri on 5/11/2022, 04:29 PM:

(private comment, text removed)

Feedback Bot on 5/12/2022, 05:11 AM:

(private comment, text removed)


Original Solutions

(no solutions)

vsfeedback avatar Jun 01 '22 15:06 vsfeedback