Skip to content

Commit 7d35c95

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/decl/protocol/protocols.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ protocol ShouldntCrash {
454454
let fullName: String { get } // expected-error {{'let' declarations cannot be computed properties}} {{3-6=var}}
455455

456456
// <rdar://problem/17200672> Let in protocol causes unclear errors and crashes
457-
let fullName2: String // expected-error {{immutable property requirement must be declared as 'var' with a '{ get }' specifier}} {{24-24= { get \}}}
457+
let fullName2: String // expected-error {{immutable property requirement must be declared as 'var' with a '{ get }' specifier}} {{3-6=var}} {{24-24= { get \}}}
458458

459459
// <rdar://problem/16789886> Assert on protocol property requirement without a type
460460
var propertyWithoutType { get } // expected-error {{type annotation missing in pattern}}

0 commit comments

Comments
 (0)