Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Sources/StateStruct/Source.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,19 @@ public macro PrimitiveTrackingProperty() =

}

enum GenericNamespace<T> {
@Tracking
struct MyState {

var stored_1: Int = 18

init() {

}

}
}

#if canImport(Observation)
import Observation

Expand Down
2 changes: 1 addition & 1 deletion Sources/StateStructMacros/TrackingMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extension TrackingMacro: ExtensionMacro {

return [
("""
extension \(structDecl.name.trimmed): TrackingObject {
extension \(type): TrackingObject {
}
""" as DeclSyntax).cast(ExtensionDeclSyntax.self)
]
Expand Down