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

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