Przeglądaj źródła

[eval] also drop static inits on removing static prototype
closes #8583

Aleksandr Kuzmenko 6 lat temu
rodzic
commit
107e071624
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/macro/eval/evalContext.ml

+ 1 - 0
src/macro/eval/evalContext.ml

@@ -211,6 +211,7 @@ class static_prototypes = object(self)
 		prototypes <- IntMap.add proto.ppath proto prototypes
 
 	method remove path =
+		inits <- IntMap.remove path inits;
 		prototypes <- IntMap.remove path prototypes
 
 	method set_needs_reset =