mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CSFix] Diagnose extraneous force unwraps in ambiguous context
This commit is contained in:
committed by
Pavel Yaskevich
parent
22893a0500
commit
bb1da5e599
@@ -121,6 +121,7 @@ do {
|
||||
} // expected-error {{expected expression after operator}}
|
||||
|
||||
_ = /x/??/x/ // expected-error {{'/' is not a postfix unary operator}}
|
||||
// expected-error@-1 2 {{cannot use optional chaining on non-optional value of type 'Regex<Substring>'}}
|
||||
|
||||
_ = /x/ ... /y/ // expected-error {{referencing operator function '...' on 'Comparable' requires that 'Regex<Substring>' conform to 'Comparable'}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user