Work around inability to deserialize local typealiases <rdar://problem/17795074>.

Swift SVN r20491
This commit is contained in:
Doug Gregor
2014-07-24 15:53:38 +00:00
parent 5fc8ac7fd1
commit a6a3e48d1e
2 changed files with 4 additions and 4 deletions

View File

@@ -388,9 +388,9 @@ public struct _ContiguousArrayBuffer<T> : _ArrayBufferType {
}
//===--- private --------------------------------------------------------===//
typealias _OptionalStorage = _ContiguousArrayStorage<T>?
var _storage: _ContiguousArrayStorage<T>? {
typealias OptionalStorage = _ContiguousArrayStorage<T>?
return unsafeBitCast(_base.storage, OptionalStorage.self)
return unsafeBitCast(_base.storage, _OptionalStorage.self)
}
typealias _Base = HeapBuffer<_ArrayBody, T>