File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
branches/master-rebranch/test/decl/protocol/req Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1455,7 +1455,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-02-a: ddd2b2976aa9bfde5f20fe37f6bd2
1455
1455
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-03-a: 171cc166f2abeb5ca2a4003700a8a78a108bd300
1456
1456
refs/heads/benlangmuir-patch-1: baaebaf39d52f3bf36710d4fe40cf212e996b212
1457
1457
refs/heads/i-do-redeclare: 8c4e6d5de5c1e3f0a2cedccf319df713ea22c48e
1458
- refs/heads/master-rebranch: 5d04df013a0ab138403d12d3d14ae59a3777e84a
1458
+ refs/heads/master-rebranch: 5077b0036c01ae28b1bdf54e8587cc3d52b465b1
1459
1459
refs/heads/rdar-53901732: 9bd06af3284e18a109cdbf9aa59d833b24eeca7b
1460
1460
refs/heads/revert-26776-subst-always-returns-a-type: 1b8e18fdd391903a348970a4c848995d4cdd789c
1461
1461
refs/heads/tensorflow-merge: 8b854f62f80d4476cb383d43c4aac2001dde3cec
Original file line number Diff line number Diff line change @@ -16,15 +16,15 @@ protocol Foo {
16
16
17
17
struct ConformsToFoo : Foo { // expected-error {{type 'ConformsToFoo' does not conform to protocol 'Foo'}}
18
18
let bar1 : Int // expected-note {{candidate is not settable, but protocol requires it}}{{3-6=var}}
19
- var bar2 : Int // expected-note {{candidate operates on an instance, not a type as required}}{{3-3=static}}
19
+ var bar2 : Int // expected-note {{candidate operates on an instance, not a type as required}}{{3-3=static }}
20
20
static var bar3 : Int = 1 // expected-note {{candidate operates on a type, not an instance as required}}{{3-10=}}
21
21
static postfix func ^^^ ( value: ConformsToFoo ) -> Int { return 0 } // expected-error {{operator implementation without matching operator declaration}}
22
22
// expected-note@-1 {{candidate is postfix, not prefix as required}}{{10-17=prefix}}
23
23
static prefix func ^^^^ ( value: ConformsToFoo ) -> Int { return 0 } // expected-error {{operator implementation without matching operator declaration}}
24
24
// expected-note@-1 {{candidate is prefix, not postfix as required}}{{10-16=postfix}}
25
25
func bar4( closure: ( ) throws -> Int ) throws { } // expected-note {{candidate is not 'rethrows', but protocol requires it}}{{40-46=rethrows}}
26
26
var bar5 : Int { return 0 } // expected-note {{candidate is not settable, but protocol requires it}}{{none}}
27
- subscript( _ pos: Int ) -> Int { return 0 } // expected-note {{candidate operates on an instance, not a type as required}}{{3-3=static}}
27
+ subscript( _ pos: Int ) -> Int { return 0 } // expected-note {{candidate operates on an instance, not a type as required}}{{3-3=static }}
28
28
}
29
29
30
30
protocol Foo1 {
You can’t perform that action at this time.
0 commit comments