Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-894] Foundation is able to compare multidimensional arrays in OS X but not in Linux #4517

Closed
swift-ci opened this issue Mar 7, 2016 · 3 comments

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Mar 7, 2016

Previous ID SR-894
Radar None
Original Reporter Zialus (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

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

md5: c96ff8a1407291966b64448232ae1b69

relates to:

  • SR-2284 Cannot invoke 'XCTAssertEqual' with an argument list of type '([Array], [[Int]])'

Issue Description:

The Summary pretty much says it all. I'm just not sure if this intended behavior or not.

@belkadan
Copy link

belkadan commented Mar 8, 2016

It's not really doing what you want it to: it's making nested NSArrays instead of Swift Arrays. I'm not sure what we want to do about this, though.

@Dante-Broggi
Copy link

I think this should have been closed after SE-0143 (Conditional Conformances) was implemented in Swift 4.2

@spevans
Copy link
Collaborator

spevans commented Feb 9, 2020

This has worked on Linux since at 4.2

$ ~/swift-4.2.4-RELEASE-ubuntu18.04/usr/bin/swift
Welcome to Swift version 4.2.4 (swift-4.2.4-RELEASE). Type :help for assistance.
  1> print([[1]] == [[1]]) 
true
  2> print([[1]] == [[2]]) 
false
  3>  
 

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants