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:
current = current.children[subpath]
current.children[name] = option
if option.types:
parameters = option.types.parameters.copy()
parameters.update(option.parameters)
option.parameters = parameters
if option.types:
parameters = option.types.parameters.copy()
parameters.update(option.parameters)
option.parameters = parameters
def change_namespaces(self, variable):
for key, value in variable.items():