Register switch
's discriminant
in the outer scope
#15167
Merged
switch
's discriminant
in the outer scope
#15167