summaryrefslogtreecommitdiff
path: root/Examples/test-suite/conversion_namespace.i
blob: e090025a352a46cecad6591f8b17c48136bb31d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
%module conversion_namespace
%rename(toFoo) oss::Bar::operator Foo();

%inline %{ 
 namespace oss 
 { 
   struct Foo {
   };
   struct Bar {
      operator Foo () { return Foo(); }
   };
  } 
%}