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 51431de0..82fc9fca 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.qualifiedName?.asString() == "$packageName.$simpleName" + return declaration.packageName.asString() == packageName } /**