I have a function declared like:
func iterateColumnsAlongGravity<S: Sequence>(using block: (_ indexes: S) -> ()) where S.Element == Int
And when I call
block with element of type
Range<Int>, I'm getting the compiler error:
'Range<Int>' is not convertible to 'S'
There are also similar errors with similar types, which actually can be converted to S.
Please, see the full question on Stackoverflow.