Skip to content

famANDassembly members are not visible in F# with InternalsVisibleTo #1373

@0x53A

Description

@0x53A

see #1332

There is also one other visibility in IL, famANDassembly, e.g. it can only be accessed by sub-types in the same assembly (and by subtypes in other assemblies, if you use InternalsVisibleTo)

It can currently only be produced by C++/CLI, but C# had wanted to implement it for C#6 (not sure if it was postponed to C#7 or completely scraped).

Repro steps

I modified an assembly with DnSpy (it might be easier to just create a C++/CLI assembly):

image

Expected behavior

In C#, the member is invisible outside the subtype
image

The member is visible inside the subtype
image

Actual behavior

In F#, the FamAndAssembly member is NOT visible.

image

Related information

Provide any related information

image

Attached is the modified assembly (A.dll)
A.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.good first issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions