fix: copy parameter of root redefine type too

This commit is contained in:
egarette@silique.fr 2026-09-07 21:50:03 +02:00
parent 5de69f1a9a
commit 15c78c2c0f

View file

@ -579,10 +579,10 @@ class ParserVariable:
for subpath in spath: for subpath in spath:
current = current.children[subpath] current = current.children[subpath]
current.children[name] = option current.children[name] = option
if option.types: if option.types:
parameters = option.types.parameters.copy() parameters = option.types.parameters.copy()
parameters.update(option.parameters) parameters.update(option.parameters)
option.parameters = parameters option.parameters = parameters
def change_namespaces(self, variable): def change_namespaces(self, variable):
for key, value in variable.items(): for key, value in variable.items():