Generated SwigDirector_* classes were attempting to override methods marked as final. In addition, give a warning if the destructor of a director class is final. Closes #564.
11 lines
173 B
Python
11 lines
173 B
Python
import cpp11_final_directors
|
|
|
|
class Derived2(cpp11_final_directors.Derived):
|
|
|
|
def meth(self):
|
|
return 3
|
|
|
|
|
|
b = Derived2()
|
|
if b.meth() != 3:
|
|
raise RuntimeError
|