mirror of https://github.com/swig/swig
12 lines
323 B
Python
12 lines
323 B
Python
from cpp11_inheriting_constructors import *
|
|
|
|
# Constructor inheritance via using declaration
|
|
d = DerivedClass(10)
|
|
if d.retrieveValue() != 10:
|
|
raise RuntimeError("retrieveValue() failed");
|
|
|
|
# Member initialization at the site of the declaration
|
|
s = SomeClass()
|
|
if s.value != 5:
|
|
raise RuntimeError("s.value failed");
|