codecentric / net_automatic_interface

.Net Source Generator for Automatic Interfaces
MIT License
62 stars 14 forks source link

Interface with default parameter of type bool causes build to break #21

Closed awasilik closed 10 months ago

awasilik commented 10 months ago

Build breaks when class has default bool parameter

example:

SampleClass
{
    public void Method(bool flag = true)
    {
    }
}

Generated interface looks like

ISampleClass
{
    void Method(bool flag = True);
}

error:

image
awasilik commented 10 months ago

Duplicated