Skip to content
Snippets Groups Projects
Commit 3e6b5f8cc4d2 authored by Adrien Di Mascio's avatar Adrien Di Mascio
Browse files

fix add_type_restriction() implementation with IN() function (closes #138635)

When the variable type is defined by an IN() function, ``add_type_restriction``
removes all types in it that don't match the specified type. Since the list
of types is modified inplace, the iteration must be done on a copy, not on
the list itself.

There was a test for "add_type_restriction + IN()" case but since there
was only 2 types defined in the IN function, the problem was not exposed.
parent cb978d851ad1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment