Skip to content

Commit fd5f3ff

Browse files
committed
fixup! [Sema] Add fix-it for property in protocol
1 parent 1ddfa58 commit fd5f3ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/decl/protocol/protocols.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ protocol Test {
1616
var minor : Int { get }
1717
var subminor : Int // expected-error {{property in protocol must have explicit { get } or { get set } specifier}} {{21-21= { get <#set#> \}}}
1818
static var staticProperty: Int // expected-error{{property in protocol must have explicit { get } or { get set } specifier}} {{33-33= { get <#set#> \}}}
19+
20+
let bugfix // expected-error {{type annotation missing in pattern}} expected-error {{immutable property requirement must be declared as 'var' with a '{ get }' specifier}}
21+
var comment // expected-error {{type annotation missing in pattern}} expected-error {{property in protocol must have explicit { get } or { get set } specifier}}
1922
}
2023

2124
protocol Test2 {

0 commit comments

Comments
 (0)