Skip to content

Commit 901f882

Browse files
fix: InferredCapability merging logic should use 'or', not 'and'.
1 parent a2554a2 commit 901f882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/autonomousapps/model/internal/Capability.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ internal data class InferredCapability(
303303
override fun merge(other: Capability): Capability {
304304
val accesses = reflectiveAccesses + (other as InferredCapability).reflectiveAccesses.toSortedSet().efficient()
305305
return InferredCapability(
306-
isAnnotations = isAnnotations && other.isAnnotations,
306+
isAnnotations = isAnnotations || other.isAnnotations,
307307
reflectiveAccesses = accesses,
308308
)
309309
}

0 commit comments

Comments
 (0)