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
//Copy the following into a Playground and watch your CPU hit 100%
class INK
{
var test = 1
}
var array = [INK!](repeating: nil, count: 1)
for idx in 0..<array.count
{
array[idx] = INK()
}
var idx2 = 0
for ink_item in array
{
idx2 += 1
print("idx2=\(idx2)")
}
The text was updated successfully, but these errors were encountered:
Swift 3's supposed to reject arrays of IUOs altogether; the fact that this can be declared at all is a bug. That said, we're almost certainly checking the wrong level of optional here when deciding whether we've reached the end of the array. @rudkx, any ideas?
Environment
Any SWIFT system. This bug has been outstanding for Months.
MacPro / Xcode just retested and the CPU goes pretty crazy
Additional Detail from JIRA
md5: 23f66f4a275084af1fbaead68898b5f6
relates to:
Issue Description:
The text was updated successfully, but these errors were encountered: