File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 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