We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b031e3 commit 15916c0Copy full SHA for 15916c0
Tests/MacroTestingTests/MacroExamples/OptionSetMacro.swift
@@ -156,7 +156,7 @@ extension OptionSetMacro: ExtensionMacro {
156
// If there is an explicit conformance to OptionSet already, don't add one.
157
if let inheritedTypes = structDecl.inheritanceClause?.inheritedTypes,
158
inheritedTypes.contains(where: { inherited in inherited.type.trimmedDescription == "OptionSet"
159
- })
+ })
160
{
161
return []
162
}
0 commit comments