diff --git a/SWIG/Examples/test-suite/constructor_exception.i b/SWIG/Examples/test-suite/constructor_exception.i index 9904e4e1e..efde1c1b0 100644 --- a/SWIG/Examples/test-suite/constructor_exception.i +++ b/SWIG/Examples/test-suite/constructor_exception.i @@ -4,9 +4,9 @@ class Error { }; -class Object { +class SomeClass { public: - Object(int x) { + SomeClass(int x) { if (x < 0) { throw Error(); } @@ -14,7 +14,7 @@ public: }; class Test { - Object o; + SomeClass o; public: Test(int x) try : o(x) { } catch (Error &e) {