mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove the default implementation of _ObjectiveCBridgeable._unconditionallyBridgeFromObjectiveC.
SILGen can't handle it yet, so pull it out until SILGen is fixed.
This commit is contained in:
@@ -33,4 +33,11 @@ extension NSRange : _ObjectiveCBridgeable {
|
||||
self._forceBridgeFromObjectiveC(x, result: &result)
|
||||
return true
|
||||
}
|
||||
|
||||
public static func _unconditionallyBridgeFromObjectiveC(source: NSValue?)
|
||||
-> NSRange {
|
||||
var result: NSRange?
|
||||
_forceBridgeFromObjectiveC(source!, result: &result)
|
||||
return result!
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user