diff options
author | Robert Bradshaw <robertwb@gmail.com> | 2017-08-12 23:26:36 -0700 |
---|---|---|
committer | Robert Bradshaw <robertwb@gmail.com> | 2017-08-12 23:26:36 -0700 |
commit | 4b582294fff45f33d60f268c0142406c0aa207aa (patch) | |
tree | 161adf535bd34d05861f5cfa42243272bffeb8bf /tests/run/cpp_stl_vector.pyx | |
parent | 18bba8ff0261206db9243c2b1721633cb798af54 (diff) | |
download | cython-4b582294fff45f33d60f268c0142406c0aa207aa.tar.gz |
Don't error on inherited type members.
This fixes #1788.
Diffstat (limited to 'tests/run/cpp_stl_vector.pyx')
-rw-r--r-- | tests/run/cpp_stl_vector.pyx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run/cpp_stl_vector.pyx b/tests/run/cpp_stl_vector.pyx index 7d4326507..5c943e423 100644 --- a/tests/run/cpp_stl_vector.pyx +++ b/tests/run/cpp_stl_vector.pyx @@ -210,3 +210,11 @@ def test_insert(): assert v.size() == count for element in v: assert element == value, '%s != %s' % (element, count) + + +# Tests GitHub issue #1788. +cdef cppclass MyVector[T](vector): + pass + +cdef cppclass Ints(MyVector[int]): + pass |