stdlib: implement nativeOwner in all array buffers to avoid %else in Arrays.swift.gyb. NFC.

Swift SVN r27133
This commit is contained in:
Erik Eckstein
2015-04-08 19:48:48 +00:00
parent d79078a391
commit 43d41147a6
4 changed files with 20 additions and 13 deletions

View File

@@ -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.