Skip to content

Commit 9ca89e4

Browse files
committed
fixup! [Sema] Add fix-it for property in protocol
1 parent f1d830a commit 9ca89e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/decl/var/lazy_properties.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ struct S {
1010

1111
protocol SomeProtocol {
1212
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#> \}}}
1414
// expected-error@-2 {{lazy properties must have an initializer}}
15-
// {{18-18= { get set \}}}
1615
lazy var y : Int { get } // expected-error {{'lazy' isn't allowed on a protocol requirement}} {{3-8=}}
1716
// expected-error@-1 {{'lazy' must not be used on a computed property}}
1817
// expected-error@-2 {{lazy properties must have an initializer}}

0 commit comments

Comments
 (0)