Skip to content

Signature file generation does not handle empty assembly info input #13757

Description

@nojaf

When generating a signature file from an assembly info file, the generated code is empty.

Repro steps

namespace System

open System.Runtime.CompilerServices

[<assembly: InternalsVisibleTo("Fantomas.Core.Tests")>]

do ()

leads to

Expected behaviour

The generated signature should be considered equivalent to the backing source file.

Actual behaviour

The generated code isn't valid:

image

I guess it should at the very least have namespace System here in order for it to compile.
This is admittedly quite an edge case.

Known workarounds

Edit signature file by hand.

Activity

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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions