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.
This commit is contained in:
Vadim Zeitlin 2019-06-26 01:14:14 +02:00
commit 53d75dc133
4 changed files with 32 additions and 1 deletions

View file

@ -71,5 +71,11 @@ public class li_std_set_runme {
checkThat(ss.removeAll(found));
checkThat(ss.isEmpty());
checkThat(ss.size() == 0);
// Check a set of another type.
java.util.AbstractSet<Foo> fooSet = new FooSet();
checkThat(fooSet.isEmpty());
checkThat(fooSet.add(new Foo(17)));
checkThat(fooSet.size() == 1);
}
}