Revert "Turn on ‘as’ bridging on Linux."

This commit is contained in:
Ben Langmuir
2018-05-17 14:54:35 -07:00
committed by GitHub
parent 6e5605aee8
commit 628b6a1fc7
15 changed files with 111 additions and 324 deletions

View File

@@ -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