From 527ce4ef4a1fc6e7d85f2ae5676653c6858abf32 Mon Sep 17 00:00:00 2001 From: Alfonso Urdaneta Date: Sat, 6 Dec 2025 16:26:33 +0000 Subject: [PATCH] suppress AST compiler warning --- SwiftCompilerSources/Sources/AST/Declarations.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SwiftCompilerSources/Sources/AST/Declarations.swift b/SwiftCompilerSources/Sources/AST/Declarations.swift index 463c07e94cf7a..58795d19f3e58 100644 --- a/SwiftCompilerSources/Sources/AST/Declarations.swift +++ b/SwiftCompilerSources/Sources/AST/Declarations.swift @@ -26,7 +26,7 @@ public class Decl: CustomStringConvertible, Hashable { /// The parent DeclContext. final public var parentDeclContext: DeclContext? { if let decl = bridged.getParent().decl { - return decl as! DeclContext + return (decl as! DeclContext) } if let bridgedDeclContext = BridgedDeclContext(bridged: bridged.getDeclContext()) { // A DeclContext which is not a Decl.