Fix typeintersect
bug reported in #36443
#46446
Merged
typeintersect
bug reported in #36443
#46446