You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Diagnostics] Filter operators if all their arguments are holes
Restrict filtering in `simplifyAppliedOverloadsImpl` to disable
overload set for operators only, because other calls e.g. regular
functions or subscripts could be filtered on labels and are less
overloaded.
Filtering non-operator calls could also lead to incorrect diagnostics
because first choice could have all sorts of different issues e.g.
incorrect labels and number of parameters.
Resolves: rdar://55369704
Copy file name to clipboardExpand all lines: test/expr/unary/keypath/keypath.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1086,7 +1086,7 @@ func rdar74711236() {
1086
1086
// FIXME: Missing member reference is pattern needs a better diagnostic
1087
1087
iflet type = context?.store { // expected-error {{type of expression is ambiguous without more context}}
1088
1088
// `isSupported` should be an invalid declaration to trigger a crash in `map(\.option)`
1089
-
letisSupported= context!.supported().contains(type) // expected-error {{missing argument label 'where:' in call}} expected-error {{converting non-escaping value to '(Type) throws -> Bool' may allow it to escape}}
0 commit comments