Skip to content

Commit 946cc75

Browse files
committed
Revert "Build fix: Update fix-it stub editor test"
This reverts commit 9a17226.
1 parent d17d508 commit 946cc75

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test/decl/protocol/conforms/fixit_stub_editor.swift

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// RUN: %target-typecheck-verify-swift -diagnostics-editor-mode
2-
// REQUIRES: objc_interop
32

4-
import Foundation
5-
6-
@objc protocol P1 {
3+
protocol P1 {
74
@available(iOS, unavailable)
85
func foo1()
96
func foo2()
@@ -14,10 +11,7 @@ protocol P2 {
1411
func bar2()
1512
}
1613

17-
class C1 : P1, P2 {}
18-
// expected-error@-1 {{type 'C1' does not conform to protocol 'P1'}}
19-
// expected-error@-2 {{type 'C1' does not conform to protocol 'P2'}}
20-
// expected-note@-3 {{do you want to add protocol stubs?}} {{20-20=\n func foo2() {\n <#code#>\n \}\n\n func bar1() {\n <#code#>\n \}\n\n func bar2() {\n <#code#>\n \}\n}}
14+
class C1 : P1, P2 {} // expected-error{{type 'C1' does not conform to protocol 'P1'}} expected-error{{type 'C1' does not conform to protocol 'P2'}} expected-note{{do you want to add protocol stubs?}}{{20-20=\n func foo1() {\n <#code#>\n \}\n\n func foo2() {\n <#code#>\n \}\n\n func bar1() {\n <#code#>\n \}\n\n func bar2() {\n <#code#>\n \}\n}}
2115

2216
protocol P3 {
2317
associatedtype T1

0 commit comments

Comments
 (0)