mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib: implement nativeOwner in all array buffers to avoid %else in Arrays.swift.gyb. NFC.
Swift SVN r27133
This commit is contained in:
@@ -271,6 +271,10 @@ public struct _UnitTestArrayBuffer<T> : _ArrayBufferType {
|
||||
return _storage ?? _emptyArrayStorage
|
||||
}
|
||||
|
||||
public var nativeOwner: AnyObject {
|
||||
return owner
|
||||
}
|
||||
|
||||
/// A value that identifies the storage used by the buffer. Two
|
||||
/// buffers address the same elements when they have the same
|
||||
/// identity and count.
|
||||
|
||||
Reference in New Issue
Block a user