Skip to content

Commit 27a84bd

Browse files
authored
Add default handling for method/initializer key path. (#1179)
1 parent c2e96f8 commit 27a84bd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Sources/FoundationMacros/PredicateMacro.swift

+1-3
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,8 @@ extension KeyPathExprSyntax {
393393
}
394394
case .subscript(let sub):
395395
result = ExprSyntax(SubscriptCallExprSyntax(calledExpression: result, arguments: sub.arguments))
396-
#if FOUNDATION_FRAMEWORK
397-
default:
396+
@unknown default:
398397
return nil
399-
#endif
400398
}
401399
}
402400
return result

0 commit comments

Comments
 (0)