mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "Turn on ‘as’ bridging on Linux."
This commit is contained in:
@@ -1171,7 +1171,7 @@ public enum EncodingError : Error {
|
||||
public var _userInfo: AnyObject? {
|
||||
// The error dictionary must be returned as an AnyObject. We can do this
|
||||
// only on platforms with bridging, unfortunately.
|
||||
#if _runtime(_ObjC)
|
||||
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
|
||||
let context: Context
|
||||
switch self {
|
||||
case .invalidValue(_, let c): context = c
|
||||
@@ -1281,7 +1281,7 @@ public enum DecodingError : Error {
|
||||
public var _userInfo: AnyObject? {
|
||||
// The error dictionary must be returned as an AnyObject. We can do this
|
||||
// only on platforms with bridging, unfortunately.
|
||||
#if _runtime(_ObjC)
|
||||
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
|
||||
let context: Context
|
||||
switch self {
|
||||
case .keyNotFound(_, let c): context = c
|
||||
|
||||
Reference in New Issue
Block a user