From 986ce538f123cdec7e0da12ed89ba7225539df0a Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 10 Jul 2024 01:34:37 +0200 Subject: Add interactive storage overlay --- symbols/src/main/kotlin/process/SubscribeAnnotationProcessor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'symbols/src/main/kotlin/process/SubscribeAnnotationProcessor.kt') diff --git a/symbols/src/main/kotlin/process/SubscribeAnnotationProcessor.kt b/symbols/src/main/kotlin/process/SubscribeAnnotationProcessor.kt index be817ce..70491ab 100644 --- a/symbols/src/main/kotlin/process/SubscribeAnnotationProcessor.kt +++ b/symbols/src/main/kotlin/process/SubscribeAnnotationProcessor.kt @@ -81,7 +81,7 @@ class SubscribeAnnotationProcessor( continue } val parent = element.parentDeclaration - if (parent !is KSClassDeclaration || parent.isCompanionObject || parent.classKind != ClassKind.OBJECT) { + if (parent !is KSClassDeclaration || parent.classKind != ClassKind.OBJECT) { logger.error("@Subscribe on a non-object", element) continue } -- cgit