Compare commits

...

1 Commits

Author SHA1 Message Date
Leonardo de Moura
7d0769a274 fix: Context.setConfig must update metaConfig and indexConfig fields
This PR fixes a bug at `Context.setConfig`. It was not propagating
the configuration to the redundant fields (cache) `metaConfig` and `indexConfig`.
2024-11-21 18:10:57 -08:00

View File

@@ -146,8 +146,12 @@ def mkContext (config : Config := {}) (simpTheorems : SimpTheoremsArray := {}) (
indexConfig := mkIndexConfig config
}
def Context.setConfig (context : Context) (config : Config) : Context :=
{ context with config }
def Context.setConfig (context : Context) (config : Config) : MetaM Context := do
return { context with
config
metaConfig := ( mkMetaConfig config)
indexConfig := ( mkIndexConfig config)
}
def Context.setSimpTheorems (c : Context) (simpTheorems : SimpTheoremsArray) : Context :=
{ c with simpTheorems }