gnames;
nsmap.TryGetValue(name, out gnames);
if (gnames?.Count > 0)
{
@@ -154,5 +122,18 @@ public static string GenericNameForBaseName(string ns, string name)
}
return null;
}
+
+ private static string GetBasename(string name)
+ {
+ int tick = name.IndexOf("`");
+ if (tick > -1)
+ {
+ return name.Substring(0, tick);
+ }
+ else
+ {
+ return name;
+ }
+ }
}
}
diff --git a/src/tests/test_generic.py b/src/tests/test_generic.py
index c7e5a8d4d..c865ab32f 100644
--- a/src/tests/test_generic.py
+++ b/src/tests/test_generic.py
@@ -745,3 +745,8 @@ def test_nested_generic_class():
"""Check nested generic classes."""
# TODO NotImplemented
pass
+
+def test_missing_generic_type():
+ from System.Collections import IList
+ with pytest.raises(TypeError):
+ IList[bool]
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy