From f90d77b9e5956653ca0def702bd3ddb3172dcdd0 Mon Sep 17 00:00:00 2001 From: Michael Rebello Date: Mon, 5 Jun 2023 14:11:35 -0700 Subject: [PATCH] Resolve Xcode 14.3 test warning Resolves the following warning when building with Xcode 14.3: ``` connect-swift/Tests/ConnectLibraryTests/ConnectTests/ConnectErrorTests.swift:92:17: warning: heterogeneous collection literal could only be inferred to '[String : Any]'; add explicit type annotation if this is intentional [ ^ ``` --- Tests/ConnectLibraryTests/ConnectTests/ConnectErrorTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/ConnectLibraryTests/ConnectTests/ConnectErrorTests.swift b/Tests/ConnectLibraryTests/ConnectTests/ConnectErrorTests.swift index 7fa8ee58..4744fb23 100644 --- a/Tests/ConnectLibraryTests/ConnectTests/ConnectErrorTests.swift +++ b/Tests/ConnectLibraryTests/ConnectTests/ConnectErrorTests.swift @@ -93,7 +93,7 @@ final class ConnectErrorTests: XCTestCase { "type": type(of: detail).protoMessageName, "value": try detail.serializedData().base64EncodedString(), "debug": ["retryDelay": "30s"], - ] + ] as [String: Any] }, ] return try JSONSerialization.data(withJSONObject: dictionary)