瀏覽代碼

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

Aleksandr Kuzmenko 6 年之前
父節點
當前提交
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 =