You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is due to this line.
It is comparatively easy to fix this bug if the type of rangeExpressionwere only Range or ClosedRange. However, the type of rangeExpression can be PartialRange*, or user-defined type that conforms to RangeExpression whose Bound is not Int. In such cases, it seems impossible to fix it as is.
I mean I think it is necessary to change API (or deprecate this subscript) if we would resolve this problem.
Environment
macOS Mojave 10.14.4
Xcode Version 10.2.1 (10E1001)
Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5)
Target: x86_64-apple-darwin18.5.0
Additional Detail from JIRA
md5: dfc2f31e6245d08d0b46ba1a18c9848a
Issue Description:
The following code:
...would generate the following error:
I would expect the code to work since 0..<Range<UInt8> looks like a valid range for the data.
The text was updated successfully, but these errors were encountered: