Fix substring error with generics in typeCase

This commit is contained in:
2022-12-16 20:32:44 +00:00
parent 44196121f9
commit 63f52cccf5

View File

@@ -1472,7 +1472,7 @@ class Macros {
names.push(nameSymbol);
types.push(type);
if (type.contains("<")) {
type = type.substr(type.indexOf("<"));
type = type.substr(0, type.indexOf("<"));
}
typesWithoutGenerics.push(type);
default: