Return correct type (interfacve) for array (#53)

This commit is contained in:
Stef Heyenrath
2023-01-23 13:11:51 +01:00
committed by GitHub
parent b7adb20257
commit c1d42ac7e5
10 changed files with 597 additions and 387 deletions
@@ -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
{
}
}