aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2019-07-09 19:32:08 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2019-07-09 19:36:46 +0100
commit20d96531e3a5fef442a13dee55020d53a452d7f8 (patch)
tree334b10fd99d90dc95cb5b2fdb7015e8c45c32bad
parentf1f98348b430c3e6c7083eb62158a79ca9a36869 (diff)
downloadswig-20d96531e3a5fef442a13dee55020d53a452d7f8.tar.gz
nested_inheritance_interface testcase enhancement
Fixes unused variable reported by C# compiler and enhance test slightly
-rw-r--r--CHANGES.current4
-rw-r--r--Examples/test-suite/csharp/nested_inheritance_interface_runme.cs4
-rw-r--r--Examples/test-suite/java/nested_inheritance_interface_runme.java4
3 files changed, 12 insertions, 0 deletions
diff --git a/CHANGES.current b/CHANGES.current
index e0b7f0897..8aef21f75 100644
--- a/CHANGES.current
+++ b/CHANGES.current
@@ -7,6 +7,10 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
Version 4.0.1 (in progress)
===========================
+2019-07-09: IsaacPascual
+ [C#, Java] #1570 Fix name of generated C#/Java classes for %interface macros
+ in swiginterface.i when wrapping nested C++ classes.
+
2019-06-24: wsfulton
[Python, Ruby] #1538 Remove the UnknownExceptionHandler class in order to be
C++17 compliant as it uses std::unexpected_handler which was removed in C++17.
diff --git a/Examples/test-suite/csharp/nested_inheritance_interface_runme.cs b/Examples/test-suite/csharp/nested_inheritance_interface_runme.cs
index ca0f01595..810b7db6d 100644
--- a/Examples/test-suite/csharp/nested_inheritance_interface_runme.cs
+++ b/Examples/test-suite/csharp/nested_inheritance_interface_runme.cs
@@ -16,6 +16,9 @@ public class nested_inheritance_interface_runme {
return SortArrayToString(stypes.ToArray());
}
+ private static void takeIA(IASwigInterface ia) {
+ }
+
public static void Main() {
Type[] BNInterfaces = typeof(B.N).GetInterfaces();
string expectedInterfacesString = "IASwigInterface IDisposable";
@@ -28,5 +31,6 @@ public class nested_inheritance_interface_runme {
// overloaded methods check
B.N d = new B.N();
+ takeIA(d);
}
}
diff --git a/Examples/test-suite/java/nested_inheritance_interface_runme.java b/Examples/test-suite/java/nested_inheritance_interface_runme.java
index 92f83ee22..8436ec294 100644
--- a/Examples/test-suite/java/nested_inheritance_interface_runme.java
+++ b/Examples/test-suite/java/nested_inheritance_interface_runme.java
@@ -12,6 +12,9 @@ public class nested_inheritance_interface_runme {
}
}
+ private static void takeIA(IASwigInterface ia) {
+ }
+
public static void main(String argv[]) {
Class[] BNInterfaces = B.N.class.getInterfaces();
String expectedInterfacesString = "[interface nested_inheritance_interface.IASwigInterface]";
@@ -24,5 +27,6 @@ public class nested_inheritance_interface_runme {
// overloaded methods check
B.N d = new B.N();
+ takeIA(d);
}
}