From 380b78a2d7ea0541f6950e26129b1fd056429aa4 Mon Sep 17 00:00:00 2001 From: Dan Federman Date: Thu, 2 Jan 2025 10:27:18 +1300 Subject: [PATCH] =?UTF-8?q?Specify=20Instantiable=E2=80=99s=20code-gen=20n?= =?UTF-8?q?ame?= 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 d4234b34..2b22cc2f 100644 --- a/Sources/SafeDI/Decorators/Instantiable.swift +++ b/Sources/SafeDI/Decorators/Instantiable.swift @@ -55,7 +55,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] = [],