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 82fc9fca..51431de0 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 @@ -29,7 +29,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" } /**