mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
14 lines
387 B
Swift
14 lines
387 B
Swift
// RUN: %target-swift-frontend %s -emit-ir -o 0
|
|
|
|
extension Slice where Base == UnsafeBufferPointer<UInt16> {
|
|
var rebased: UnsafeBufferPointer<UInt16> {
|
|
return UnsafeBufferPointer(rebasing: self)
|
|
}
|
|
}
|
|
|
|
extension Slice where Base == UnsafeMutableBufferPointer<UInt16> {
|
|
var rebased: UnsafeMutableBufferPointer<UInt16> {
|
|
return UnsafeMutableBufferPointer(rebasing: self)
|
|
}
|
|
}
|