fix #26267, regression in names
with imported=false
#26293
Merged
names
with imported=false
#26293