mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The directory currently seems to have a mix of tests for import resolution and name lookup. Therefore split it into two directories; ImportResolution and NameLookup.
10 lines
186 B
Swift
10 lines
186 B
Swift
import Foundation
|
|
|
|
extension Data {
|
|
@_inlineable
|
|
public func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R {
|
|
let r: R? = nil
|
|
return r!
|
|
}
|
|
}
|