File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,8 @@ struct S {
10
10
11
11
protocol SomeProtocol {
12
12
lazy var x : Int // expected-error {{'lazy' isn't allowed on a protocol requirement}} {{3-8=}}
13
- // expected-error@-1 {{property in protocol must have explicit { get } or { get set } specifier}}
13
+ // expected-error@-1 {{property in protocol must have explicit { get } or { get set } specifier}} {{19-19= { get <#set#> \}}}
14
14
// expected-error@-2 {{lazy properties must have an initializer}}
15
- // {{18-18= { get set \}}}
16
15
lazy var y : Int { get } // expected-error {{'lazy' isn't allowed on a protocol requirement}} {{3-8=}}
17
16
// expected-error@-1 {{'lazy' must not be used on a computed property}}
18
17
// expected-error@-2 {{lazy properties must have an initializer}}
You can’t perform that action at this time.
0 commit comments