Skip to content

Commit 5077b00

Browse files
authored
[Test] Update test and add trailing space to 'static' fix-its
1 parent 5d04df0 commit 5077b00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/decl/protocol/req/witness_fix_its.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ protocol Foo {
1616

1717
struct ConformsToFoo: Foo { // expected-error {{type 'ConformsToFoo' does not conform to protocol 'Foo'}}
1818
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 }}
2020
static var bar3: Int = 1 // expected-note {{candidate operates on a type, not an instance as required}}{{3-10=}}
2121
static postfix func ^^^(value: ConformsToFoo) -> Int { return 0 } // expected-error {{operator implementation without matching operator declaration}}
2222
// expected-note@-1 {{candidate is postfix, not prefix as required}}{{10-17=prefix}}
2323
static prefix func ^^^^(value: ConformsToFoo) -> Int { return 0 } // expected-error {{operator implementation without matching operator declaration}}
2424
// expected-note@-1 {{candidate is prefix, not postfix as required}}{{10-16=postfix}}
2525
func bar4(closure: () throws -> Int) throws {} // expected-note {{candidate is not 'rethrows', but protocol requires it}}{{40-46=rethrows}}
2626
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 }}
2828
}
2929

3030
protocol Foo1 {

0 commit comments

Comments
 (0)