aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/overload_method.i
blob: 8b44b8172692275ce5d789540768044b5eb8ed99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* This test confirms the fix to sourceforge bug #3478922 for R */

%module overload_method
%inline %{
class Base
   {
   public:

   Base() : x(42) {}

   int method() const { return x; }

   void overloaded_method(int aArg) { x = aArg; }
   int overloaded_method() const { return x; }

   private:

   int x;
   };
%}