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
Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) Target: x86_64-apple-darwin19.5.0
Additional Detail from JIRA
Votes
0
Component/s
Compiler, Foundation
Labels
Bug, Runtime
Assignee
None
Priority
Medium
md5: bdaa20b6bf7a6aef772d4ccd188017e9
Issue Description:
Compare this
import Foundation
letunit:()=()letunitAny= unit asAnyletunitObject1= unit asAnyObjectletunitObject2= unit asAnyObject
unit == unit // true
unitObject1.isEqual(unit)// false
unitObject1.isEqual(unitObject1)// true
unitObject1.isEqual(unitObject2)// false
with
import Foundation
letnum=12345678987letnumAny= num asAnyletnumObject1= num asAnyObjectletnumObject2= num asAnyObject
num == num // true
numObject1.isEqual(num)// true
numObject1.isEqual(numObject1)// true
numObject1.isEqual(numObject2)// true
I expect all expression in the first code block to be true analogous to the second code block.
The text was updated successfully, but these errors were encountered:
Attachment: Download
Environment
Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)
Target: x86_64-apple-darwin19.5.0
Additional Detail from JIRA
md5: bdaa20b6bf7a6aef772d4ccd188017e9
Issue Description:
Compare this
with
I expect all expression in the first code block to be
true
analogous to the second code block.The text was updated successfully, but these errors were encountered: