Просмотр исходного кода

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

Aleksandr Kuzmenko 6 лет назад
Родитель
Сommit
107e071624
1 измененных файлов с 1 добавлено и 0 удалено
  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 =