[943] Wrong Interface Extraction


With the given the class

class Foo<T, R>
{
public R Bar(T t)
{
throw new System.NotImplementedException();
}
}

when extracting an interface with version 942 and 943 of R#.

then the result should look like

internal interface IFoo<T, R>
{
R Bar(T t);
}

class Foo<T, R> : IFoo<T, R>
{
public R Bar(T t)
{
throw new System.NotImplementedException();
}
}

and not like this

internal interface IFoo<R, T>
{
R Bar(T t);
}

class Foo<T, R> : IFoo<R, T>
{
public R Bar(T t)
{
throw new System.NotImplementedException();
}
}

which is the current behavior.

Regards

Albert
http://der-albert.com

Please sign in to leave a comment.