summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorVadim Zeitlin <vz-swig@zeitlins.org>2019-06-26 01:14:14 +0200
committerVadim Zeitlin <vz-swig@zeitlins.org>2019-07-11 12:49:17 +0200
commit53d75dc133f9fb3fb36cb5bc53c0a2d2b135da9f (patch)
tree634ab80fb76d9b511d8296d1c25101d1fe33d094 /Lib
parent2db6b4271538626290ccaaaa73b97ef126d37191 (diff)
downloadswig-53d75dc133f9fb3fb36cb5bc53c0a2d2b135da9f.tar.gz
Replace leftover string with the proper type in C# set typemap
This is just a mistake remaining from generalizing the old string-specific typemap to any type. Fix it now and update a unit test to test for sets of objects other than strings.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/csharp/std_set.i2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/csharp/std_set.i b/Lib/csharp/std_set.i
index 3b2492e0e..1d946e644 100644
--- a/Lib/csharp/std_set.i
+++ b/Lib/csharp/std_set.i
@@ -30,7 +30,7 @@ class set {
%typemap(csinterfaces) std::set<T> "global::System.IDisposable, global::System.Collections.Generic.ISet<$typemap(cstype, T)>\n";
%proxycode %{
- void global::System.Collections.Generic.ICollection<$typemap(cstype, T)>.Add(string item) {
+ void global::System.Collections.Generic.ICollection<$typemap(cstype, T)>.Add($typemap(cstype, T) item) {
((global::System.Collections.Generic.ISet<$typemap(cstype, T)>)this).Add(item);
}