Skip to content

[SR-14414] swift-corelibs-foundation’s firstRange(of:) is broken #56770

Closed
@Frizlab

Description

@Frizlab
Previous ID SR-14414
Radar rdar://problem/75972147
Original Reporter @Frizlab
Type Bug
Environment

Swift on Linux, in Docker image 9ca75bbbbcbe (Swift version 5.3.3 (swift-5.3.3-RELEASE)).

Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: bd7ca37b73083e4d24c12f901bb4e448

Issue Description:

Sample code:

import Foundation
let data = Data([1, 2, 3])
let match = data.firstRange(of: Data([3]))

match is nil

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions