#1064 Swig typemap confused by global namespace operator

closed-fixed
5
2010-01-23
2010-01-15
Kevin Smyth
No

Test input:

#ifdef SWIG
%typemap(csout, excode=SWIGEXCODE) A::ClassA {
TYPEMAP APPLIED
}
#endif

namespace A {
class ClassA {};
}

namespace B {
A::ClassA testing1();
::A::ClassA testing2();
}

testing.cs contains:
public class testing {
public static ClassA testing1() {
TYPEMAP APPLIED
}

public static ClassA testing2() {
ClassA ret = new ClassA(testingPINVOKE.testing2(), true);
return ret;
}

}
The typemap should apple to testing2() also.

Discussion

  • William Fulton

    William Fulton - 2010-01-23
    • labels: --> code generation (general)
    • assigned_to: nobody --> wsfulton
    • status: open --> closed-fixed
     
  • William Fulton

    William Fulton - 2010-01-23

    This is now fixed in svn.

     

Log in to post a comment.