Fix #7387, operations between ranges and non-real numbers
Merge pull request #7425 from JuliaLang/sjk/7387

Fix #7387, operations between ranges and non-real numbers