[SR-1535] No == overload exists for comparing optional arrays. #44144
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: a2385dd9b41110cab90c3d9ba8328769
is duplicated by:
relates to:
Issue Description:
There are overloads of
==
for optionals and for non-optional arrays, but there's no overload for comparing optional arrays. This seems like a small oversight but would be useful broadly.For example, this will not compile:
Providing an
==
overload for optional arrays would tie up the loose ends left between the existing overloads:This change would be added to Arrays.swift.gyb, so it would need to be modified to conform to the .gyb syntax, and would thus also extend ArraySlice.
The text was updated successfully, but these errors were encountered: