We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f869c76 commit be33e1fCopy full SHA for be33e1f
1 file changed
de.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/translation/imtranslation/EliminateGenerics.java
@@ -208,6 +208,15 @@ private void removeGenericConstructs() {
208
for (ImClass c : prog.getClasses()) {
209
c.getFields().removeIf(f -> isGenericType(f.getType()));
210
}
211
+
212
+ // NEW: Remove original generic global variables
213
+ prog.getGlobals().removeIf(v -> {
214
+ if (globalToClass.containsKey(v)) {
215
+ WLogger.info("Removing generic global variable: " + v.getName() + " with type " + v.getType());
216
+ return true;
217
+ }
218
+ return false;
219
+ });
220
221
222
private void eliminateGenericUses() {
0 commit comments