diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt b/plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt index ce41562b..6de3f121 100644 --- a/plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt +++ b/plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt @@ -33,9 +33,9 @@ internal fun DPackage.asJava(): DPackage { constructors = emptyList(), functions = ( nodes.filterIsInstance<DProperty>() - .map { it.javaAccessors() } + + .flatMap { it.javaAccessors() } + nodes.filterIsInstance<DFunction>() - .map { it.asJava(syntheticClassName) }) as List<DFunction>, // TODO: methods are static and receiver is a param + .map { it.asJava(syntheticClassName) }), // TODO: methods are static and receiver is a param classlikes = emptyList(), sources = PlatformDependent.empty(), visibility = PlatformDependent( |