Skip to content

Commit 1d84a4f

Browse files
committed
fix: update macro tests for swift-syntax 6
1 parent e0afbb3 commit 1d84a4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

WorkflowSwiftUIMacros/Tests/Derived/ObservableStateMacroTests.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ final class ObservableStateMacroTests: XCTestCase {
3636
#"""
3737
@available(iOS 18, *)
3838
struct State {
39-
var count = 0 {
39+
var count {
4040
@storageRestrictions(initializes: _count)
4141
init(initialValue) {
4242
_count = initialValue
@@ -82,7 +82,7 @@ final class ObservableStateMacroTests: XCTestCase {
8282
} expansion: {
8383
#"""
8484
struct State {
85-
var count = 0 {
85+
var count {
8686
@storageRestrictions(initializes: _count)
8787
init(initialValue) {
8888
_count = initialValue
@@ -128,7 +128,7 @@ final class ObservableStateMacroTests: XCTestCase {
128128
} expansion: {
129129
#"""
130130
public struct State {
131-
var count = 0 {
131+
var count {
132132
@storageRestrictions(initializes: _count)
133133
init(initialValue) {
134134
_count = initialValue
@@ -171,7 +171,7 @@ final class ObservableStateMacroTests: XCTestCase {
171171
} expansion: {
172172
#"""
173173
package struct State {
174-
var count = 0 {
174+
var count {
175175
@storageRestrictions(initializes: _count)
176176
init(initialValue) {
177177
_count = initialValue

0 commit comments

Comments
 (0)