Skip to content

Commit f60f500

Browse files
committed
add expectation for "does not conform to protocol" error diag
this error was being generated, but previously not emitted
1 parent e2c3e96 commit f60f500

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ClangImporter/objc_async_conformance.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extension C2 {
2222
// a version of C2 that requires both sync and async methods (differing only by
2323
// completion handler) in ObjC, is not possible to conform to with 'async' in
2424
// a Swift protocol
25-
class C3 : NSObject, RequiredObserver {}
25+
class C3 : NSObject, RequiredObserver {} // expected-error {{type 'C3' does not conform to protocol 'RequiredObserver'}}
2626
extension C3 {
2727
func hello() -> Bool { true } // expected-note {{'hello()' previously declared here}}
2828
func hello() async -> Bool { true } // expected-error {{invalid redeclaration of 'hello()'}}

0 commit comments

Comments
 (0)