From 2f238c58136a31875cd9a837458973385a687ed5 Mon Sep 17 00:00:00 2001 From: Dan Federman Date: Thu, 2 Jan 2025 11:01:07 +1300 Subject: [PATCH] =?UTF-8?q?Specify=20Instantiable=E2=80=99s=20code-gen=20n?= =?UTF-8?q?ame=20(#136)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/SafeDI/Decorators/Instantiable.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SafeDI/Decorators/Instantiable.swift b/Sources/SafeDI/Decorators/Instantiable.swift index 57e1cd3a..7b8baf33 100644 --- a/Sources/SafeDI/Decorators/Instantiable.swift +++ b/Sources/SafeDI/Decorators/Instantiable.swift @@ -53,7 +53,7 @@ /// - isRoot: Whether the decorated type represents a root of a dependency tree. /// - additionalTypes: The types (in addition to the type decorated with this macro) of properties that can be decorated with `@Instantiated` and yield a result of this type. The types provided *must* be either superclasses of this type or protocols to which this type conforms. /// - conformsElsewhere: Whether the decorated type already conforms to the `Instantiable` protocol elsewhere. If set to `true`, the macro does not enforce that this declaration conforms to `Instantiable`. -@attached(member, names: arbitrary) +@attached(member, names: named(ForwardedProperties)) public macro Instantiable( isRoot: Bool = false, fulfillingAdditionalTypes additionalTypes: [Any.Type] = [],