Return correct type (interfacve) for array (#53)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source;
|
||||
|
||||
public class Bar
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source;
|
||||
|
||||
public class Foo
|
||||
{
|
||||
//public Bar DoSomethingAndGetABar()
|
||||
//{
|
||||
// return new Bar();
|
||||
//}
|
||||
|
||||
//public Bar[] DoSomethingAndGetAnArrayOfBars()
|
||||
//{
|
||||
// return new[] { new Bar() };
|
||||
//}
|
||||
|
||||
//public Foo DoSomethingAndGetAFoo()
|
||||
//{
|
||||
// return new Foo();
|
||||
//}
|
||||
|
||||
public Foo[] Foos { get; set; }
|
||||
|
||||
public Foo[] DoSomethingAndGetAnArrayOfFoos()
|
||||
{
|
||||
return new[] { new Foo() };
|
||||
}
|
||||
|
||||
//public List<Foo> DoSomethingAndGetAListOfFoos()
|
||||
//{
|
||||
// return new[] { new Foo() }.ToList();
|
||||
//}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial interface IFoo
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user