Skip to content

"Implement interface" breaks with #: directive #82787

@jjonescz

Description

@jjonescz

Version Used: main

Steps to Reproduce:

#:property Configuration=Release

using System.Collections;

class A : I
{
}

interface I
{
    void M(System.DateTime dt, System.IO.FileInfo f);
}

Invoke "implement interface" code fix.

Expected Behavior:

#:property Configuration=Release

using System;
using System.Collections;
using System.IO;

class A : I
{
    public void M(DateTime dt, FileInfo f)
    {
        throw new NotImplementedException();
    }
}

interface I
{
    void M(System.DateTime dt, System.IO.FileInfo f);
}

Actual Behavior:

#:property Configuration=Release

using System;

# : property Configuration=Release

using System.Collections;
using System.IO;

class A : I
{
    public void M(DateTime dt, FileInfo f)
    {
        throw new NotImplementedException();
    }
}

interface I
{
    void M(System.DateTime dt, System.IO.FileInfo f);
}

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions