Skip to content

Commit 3a3bef5

Browse files
committed
Add default handling for method/initializer key path.
1 parent 3b31f75 commit 3a3bef5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/FoundationMacros/PredicateMacro.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ extension KeyPathExprSyntax {
394394
case .subscript(let sub):
395395
result = ExprSyntax(SubscriptCallExprSyntax(calledExpression: result, arguments: sub.arguments))
396396
#if FOUNDATION_FRAMEWORK
397+
case .method:
398+
fallthrough
397399
default:
398400
return nil
399401
#endif

0 commit comments

Comments
 (0)