Skip to content
Open
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
2 changes: 1 addition & 1 deletion proposals/0379-opt-in-reflection-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ If the presence of reflection metadata is mandatory, the requirement on Reflecta

To decide when to emit reflection metadata IRGen will check the conformance of a type to the `Reflectable` protocol and if the type conforms, IRGen will emit reflection symbols.

Conformance to Reflectable should be only allowed at type declarations level, to avoid confusing behavior, when a developer adds conformance on an imported from another module type that doesn't have reflection enabled.
Adding conformance to Reflectable should be only allowed at the type declarations level or on an extension if it's placed in the same source file as the type declaration. This will help to avoid confusing behavior when a developer adds conformance on an imported from another module type that doesn't have reflection enabled.

Transitive conformance to Reflectable should be allowed to give API authors an opportunity to hide reflection logic from APIs users as implementation details.

Expand Down