File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ private static Stream GetResourceStream(Assembly assembly)
40
40
}
41
41
42
42
public GetterSetterToPropertyPass ( )
43
- => VisitOptions . ResetFlags ( VisitFlags . ClassTemplateSpecializations ) ;
43
+ => VisitOptions . ResetFlags ( VisitFlags . ClassBases | VisitFlags . ClassTemplateSpecializations ) ;
44
44
45
45
public override bool VisitClassDecl ( Class @class )
46
46
{
Original file line number Diff line number Diff line change @@ -1282,6 +1282,11 @@ int HasConflictWithAbstractProperty::conflictWithProperty()
1282
1282
return 0 ;
1283
1283
}
1284
1284
1285
+ int TestOverrideOfPropertyInNamespacedClass::property ()
1286
+ {
1287
+ return 0 ;
1288
+ }
1289
+
1285
1290
const char * HasVirtualTakesReturnsProblematicTypes::virtualTakesAndReturnsString (const char * c)
1286
1291
{
1287
1292
return c;
Original file line number Diff line number Diff line change @@ -1029,6 +1029,19 @@ class DLL_API HasConflictWithAbstractProperty
1029
1029
virtual int getConflictWithProperty () = 0;
1030
1030
};
1031
1031
1032
+ // https://github.com/mono/CppSharp/issues/1283
1033
+ namespace NamespaceWithVirtualPropertyClass {
1034
+ class DLL_API HasOverriddenPropertyInNamespacedClass {
1035
+ public:
1036
+ virtual int property () = 0;
1037
+ };
1038
+ }
1039
+
1040
+ class DLL_API TestOverrideOfPropertyInNamespacedClass : public NamespaceWithVirtualPropertyClass::HasOverriddenPropertyInNamespacedClass {
1041
+ public:
1042
+ virtual int property () override ;
1043
+ };
1044
+
1032
1045
template <typename T>
1033
1046
class lowerCase
1034
1047
{
You can’t perform that action at this time.
0 commit comments