Hi,
I'm currently facing an issue where if you try to create a proxy object for two classes which have the same name and inherit from different objects, the proxy generator can't build.
I.e.:
namespace ProxyInterfaceDemo;
public class Group : Displayable
{
public string Name { get; set; }
}
namespace ProxyInterfaceDemo.Depth;
public class Group : Destroyable
{
}
[Proxy(typeof(Displayable), true, ProxyClassAccessibility.Internal)]
public partial interface IDisplayable
{
}
[Proxy(typeof(Destroyable), true, ProxyClassAccessibility.Internal)]
public partial interface IDestroyable
{
}
[Proxy(typeof(Group), ProxyClassAccessibility.Internal)]
public partial interface IGroup : IDisplayable
{
}
[Proxy(typeof(Depth.Group), ProxyClassAccessibility.Internal)]
public partial interface IGroupDepth : IDisplayable
{
}
0>ProxyInterfaceDemo.GroupProxy.g.cs(15,86): Error CS0738 : 'GroupProxy' does not implement interface member 'IDisplayable._Instance'. 'GroupProxy._Instance' cannot implement 'IDisplayable._Instance' because it does not have the matching return type of 'Displayable'.
0>ProxyInterfaceDemo.GroupProxy.g.cs(15,86): Error CS0535 : 'GroupProxy' does not implement interface member 'IDisplayable.Display()'
0>ProxyInterfaceDemo.Depth.GroupProxy.g.cs(19,59): Error CS0102 : The type 'GroupProxy' already contains a definition for '_Instance'
0>------- Finished building project: ProxyInterfaceDemo. Succeeded: False. Errors: 4. Warnings: 0
Build completed in 00:00:00.976
I have created an example of the issue I'm facing at https://github.com/harry0198/ProxyInterfaceDemo
Unclear if I'm creating the proxy objects incorrectly or if this is a bug?
Hi,
I'm currently facing an issue where if you try to create a proxy object for two classes which have the same name and inherit from different objects, the proxy generator can't build.
I.e.:
I have created an example of the issue I'm facing at https://github.com/harry0198/ProxyInterfaceDemo
Unclear if I'm creating the proxy objects incorrectly or if this is a bug?