File tree Expand file tree Collapse file tree
BeaKona.AutoInterfaceGenerator Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,11 +13,17 @@ public static void Main()
1313 }
1414 }
1515
16- public interface IB
16+ interface IA
1717 {
18- protected Point Point { get ; }
19- int X ( ) => Point . X ;
20- int Y => Point . Y ;
18+ int X ( ) ;
19+ int Y { get ; }
20+ }
21+
22+ interface IB : IA
23+ {
24+ Point Point { get ; }
25+ int IA . X ( ) => Point . X ;
26+ int IA . Y => Point . Y ;
2127 static int Count => 1 ;
2228 int Count2 => 2 ;
2329 }
@@ -29,6 +35,19 @@ partial class C1 : IB
2935 System . Drawing . Point IB . Point => Point . Empty ;
3036 }
3137
38+ partial class C2 : IB
39+ {
40+ [ AutoInterface ( typeof ( IB ) ) ] private IB _inner = default ! ;
41+
42+ }
43+
44+ partial class D1 : IB
45+ {
46+
47+ [ AutoInterface ( typeof ( IB ) , IncludeBaseInterfaces = true ) ] private IB _inner = default ! ;
48+
49+ }
50+
3251 public class MyDb : IDb
3352 {
3453 [ AllowNull ]
Original file line number Diff line number Diff line change @@ -697,6 +697,11 @@ bool ShouldGenerate(ISymbol member)
697697 }
698698 }
699699
700+ if ( member is IPropertySymbol p && p . ExplicitInterfaceImplementations . Length > 0 )
701+ {
702+ return false ;
703+ }
704+
700705 var memberImplementedBySignature = type . IsMemberImplementedBySignature ( member , true ) ;
701706 var memberImplementedExplicitly = type . IsMemberImplementedExplicitly ( member ) ;
702707
You can’t perform that action at this time.
0 commit comments