scala3
scala3 copied to clipboard
Check OrType in interpolated toString lint
Fixes #23361
If an arg to a interpolator is a conditional or match, the expression type may be an OrType, so check both parts for non-Strings for which toString is used for interpolation.