Skip to content

Commit 45ddcf8

Browse files
committed
Patch
1 parent ab5621e commit 45ddcf8

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Sources/StateStruct/Source.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,19 @@ public macro PrimitiveTrackingProperty() =
142142

143143
}
144144

145+
enum GenericNamespace<T> {
146+
@Tracking
147+
struct MyState {
148+
149+
var stored_1: Int = 18
150+
151+
init() {
152+
153+
}
154+
155+
}
156+
}
157+
145158
#if canImport(Observation)
146159
import Observation
147160

Sources/StateStructMacros/TrackingMacro.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ extension TrackingMacro: ExtensionMacro {
4848

4949
return [
5050
("""
51-
extension \(structDecl.name.trimmed): TrackingObject {
51+
extension \(type): TrackingObject {
5252
}
5353
""" as DeclSyntax).cast(ExtensionDeclSyntax.self)
5454
]

0 commit comments

Comments
 (0)