resolve issue involving inheritance + def_static + override (fixes #511)
diff --git a/tests/test_issues.py b/tests/test_issues.py
index a2cf530..1b29ceb 100644
--- a/tests/test_issues.py
+++ b/tests/test_issues.py
@@ -237,3 +237,15 @@
1.0
(0.0, 2.0)
"""
+
+
+def test_inheritance_override_def_static():
+ from pybind11_tests.issues import MyBase, MyDerived
+
+ b = MyBase.make()
+ d1 = MyDerived.make2()
+ d2 = MyDerived.make()
+
+ assert isinstance(b, MyBase)
+ assert isinstance(d1, MyDerived)
+ assert isinstance(d2, MyDerived)