Add overloading tests for interface feature
This commit is contained in:
parent
fc4be01106
commit
d0fb0ae801
2 changed files with 12 additions and 1 deletions
|
|
@ -57,5 +57,12 @@ public class multiple_inheritance_interfaces_runme {
|
||||||
checkBaseAndInterfaces(K.class, false, "", new String[] {"IJ", "IK"});
|
checkBaseAndInterfaces(K.class, false, "", new String[] {"IJ", "IK"});
|
||||||
checkBaseAndInterfaces(L.class, false, "", new String[] {"IJ", "IK", "IL"});
|
checkBaseAndInterfaces(L.class, false, "", new String[] {"IJ", "IK", "IL"});
|
||||||
checkBaseAndInterfaces(M.class, false, "", new String[] {"IJ", "IK", "IL"});
|
checkBaseAndInterfaces(M.class, false, "", new String[] {"IJ", "IK", "IL"});
|
||||||
|
|
||||||
|
// overloaded methods check
|
||||||
|
D d = new D();
|
||||||
|
d.ia();
|
||||||
|
d.ia(10);
|
||||||
|
d.ia("bye");
|
||||||
|
d.ia("bye", false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,11 @@ DECLARE_INTERFACE_RENAME(IC, C, IC)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
struct IA { virtual void ia() {} };
|
struct IA {
|
||||||
|
virtual void ia() {};
|
||||||
|
virtual void ia(const char *s, bool b = true) {}
|
||||||
|
virtual void ia(int i) {}
|
||||||
|
};
|
||||||
struct IB { virtual void ib() {} };
|
struct IB { virtual void ib() {} };
|
||||||
struct IC : IA, IB {};
|
struct IC : IA, IB {};
|
||||||
struct D : IC {};
|
struct D : IC {};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue