Fix #6939
Merge pull request #7210 from JuliaLang/kf/replcombine

Fix #6939