Skip to content

Commit f0f33eb

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/decl/protocol/protocols.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,8 @@ class C4 : P4 { // expected-error {{type 'C4' does not conform to protocol 'P4'}
500500
// <rdar://problem/25185722> Crash with invalid 'let' property in protocol
501501
protocol LetThereBeCrash {
502502
let x: Int
503-
// expected-error@-1 {{immutable property requirement must be declared as 'var' with a '{ get }' specifier}}
503+
// expected-error@-1 {{immutable property requirement must be declared as 'var' with a '{ get }' specifier}} {{13-13= { get \}}}
504504
// expected-note@-2 {{declared here}}
505-
// {{13-13= { get \}}}
506505
}
507506

508507
extension LetThereBeCrash {

0 commit comments

Comments
 (0)