diff --git a/kotlin-inject-compiler/ksp/src/main/kotlin/me/tatarka/inject/compiler/ksp/Util.kt b/kotlin-inject-compiler/ksp/src/main/kotlin/me/tatarka/inject/compiler/ksp/Util.kt index 54201f74..19fe5b62 100644 --- a/kotlin-inject-compiler/ksp/src/main/kotlin/me/tatarka/inject/compiler/ksp/Util.kt +++ b/kotlin-inject-compiler/ksp/src/main/kotlin/me/tatarka/inject/compiler/ksp/Util.kt @@ -35,7 +35,7 @@ private fun KSAnnotation.hasName(packageName: String, simpleName: String): Boole // we can skip resolving if the short name doesn't match if (shortName.asString() != simpleName) return false val declaration = annotationType.resolve().declaration - return declaration.packageName.asString() == packageName + return declaration.qualifiedName?.asString() == "$packageName.$simpleName" } /**