Skip to content

Commit db5b870

Browse files
committed
[Test] Fixup expected diagnostics
1 parent 4aa30c7 commit db5b870

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Macros/accessor_macros.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ ms.favoriteColor = "Yellow"
9696
struct MyBrokenStruct {
9797
var _birthDate: MyWrapperThingy<Date?> = .init(storage: nil)
9898

99-
// expected-note@+1 2{{in expansion of macro 'myPropertyWrapper' on property 'birthDate' here}}
99+
// expected-note@+1 2{{in expansion of macro 'myPropertyWrapper'}}
100100
@myPropertyWrapper
101101
var birthDate: Date? {
102102
// CHECK-DIAGS: variable already has a getter
@@ -113,7 +113,7 @@ struct MyBrokenStruct {
113113
}
114114
}
115115

116-
// expected-error@+1{{'accessor' macro cannot be attached to struct ('CannotHaveAccessors')}}
116+
// expected-error@+1{{'accessor' macro cannot be attached to struct}}
117117
@myPropertyWrapper
118118
struct CannotHaveAccessors {}
119119
// CHECK-DIAGS: 'accessor' macro cannot be attached to struct

0 commit comments

Comments
 (0)