From 1d84a4f645616e5d6e66e21d59b81d311a48ee78 Mon Sep 17 00:00:00 2001 From: Andrew Watt Date: Tue, 1 Oct 2024 19:26:07 -0700 Subject: [PATCH] fix: update macro tests for swift-syntax 6 --- .../Tests/Derived/ObservableStateMacroTests.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/WorkflowSwiftUIMacros/Tests/Derived/ObservableStateMacroTests.swift b/WorkflowSwiftUIMacros/Tests/Derived/ObservableStateMacroTests.swift index 979d7afa..9bacc894 100644 --- a/WorkflowSwiftUIMacros/Tests/Derived/ObservableStateMacroTests.swift +++ b/WorkflowSwiftUIMacros/Tests/Derived/ObservableStateMacroTests.swift @@ -36,7 +36,7 @@ final class ObservableStateMacroTests: XCTestCase { #""" @available(iOS 18, *) struct State { - var count = 0 { + var count { @storageRestrictions(initializes: _count) init(initialValue) { _count = initialValue @@ -82,7 +82,7 @@ final class ObservableStateMacroTests: XCTestCase { } expansion: { #""" struct State { - var count = 0 { + var count { @storageRestrictions(initializes: _count) init(initialValue) { _count = initialValue @@ -128,7 +128,7 @@ final class ObservableStateMacroTests: XCTestCase { } expansion: { #""" public struct State { - var count = 0 { + var count { @storageRestrictions(initializes: _count) init(initialValue) { _count = initialValue @@ -171,7 +171,7 @@ final class ObservableStateMacroTests: XCTestCase { } expansion: { #""" package struct State { - var count = 0 { + var count { @storageRestrictions(initializes: _count) init(initialValue) { _count = initialValue