mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Drop unneeded protocol requirement
Conversion to cocoa is not a common requirement for all models of _ArrayBufferType Swift SVN r22947
This commit is contained in:
@@ -88,7 +88,7 @@ for x: AnyObject in s_m {
|
||||
// CHECK: 2
|
||||
// CHECK: 1
|
||||
var a2 = [3, 2, 1]
|
||||
var nsa2 = (a2._asCocoaArray() as AnyObject) as NSArray
|
||||
var nsa2 = (a2._buffer._asCocoaArray() as AnyObject) as NSArray
|
||||
for x: AnyObject in nsa2 {
|
||||
println(x.description!)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user