diff --git a/poko-compiler-plugin/src/main/kotlin/dev/drewhamilton/poko/fir/PokoFirCheckersExtension.kt b/poko-compiler-plugin/src/main/kotlin/dev/drewhamilton/poko/fir/PokoFirCheckersExtension.kt index 91d8a8ca..9b2a957b 100644 --- a/poko-compiler-plugin/src/main/kotlin/dev/drewhamilton/poko/fir/PokoFirCheckersExtension.kt +++ b/poko-compiler-plugin/src/main/kotlin/dev/drewhamilton/poko/fir/PokoFirCheckersExtension.kt @@ -96,8 +96,12 @@ internal class PokoFirCheckersExtension( } private fun FirAnnotation.isNestedInDefaultPokoAnnotation(): Boolean { - return annotationTypeRef.coneTypeOrNull?.classId?.outerClassId?.asFqNameString() == - DEFAULT_POKO_ANNOTATION + val outerFqName = annotationTypeRef.coneTypeOrNull!!.classId!! + .outerClassId!! + .asFqNameString() + return outerFqName == DEFAULT_POKO_ANNOTATION || + // Multiplatform FqName has "." instead of "/" for package: + outerFqName.replace(".", "/") == DEFAULT_POKO_ANNOTATION } }