We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc72be4 commit 8d6a918Copy full SHA for 8d6a918
1 file changed
src/embed_tests/Inheritance.cs
@@ -59,6 +59,14 @@ public void InheritedFromInheritedClassIsSelf()
59
Assert.IsTrue(PythonReferenceComparer.Instance.Equals(b, bInstanceClass));
60
}
61
62
+ // https://github.com/pythonnet/pythonnet/issues/1420
63
+ [Test]
64
+ public void CallBaseMethodFromContainerInNestedClass()
65
+ {
66
+ using var nested = new ContainerClass.InnerClass().ToPython();
67
+ nested.InvokeMethod(nameof(ContainerClass.BaseMethod));
68
+ }
69
+
70
[Test]
71
public void Grandchild_PassesExtraBaseInstanceCheck()
72
{
@@ -183,4 +191,14 @@ public int XProp
183
191
set => this.extras[nameof(this.XProp)] = value;
184
192
185
193
194
195
+ public class ContainerClass
196
197
+ public void BaseMethod() { }
198
199
+ public class InnerClass: ContainerClass
200
201
202
203
186
204
0 commit comments