From 6e7cb64b378028d9472a3e3ddb3c9ad8317faa76 Mon Sep 17 00:00:00 2001 From: Konstantin Anisimov Date: Thu, 4 May 2017 11:56:38 +0700 Subject: [PATCH] Typos fixed --- .../kotlin/backend/konan/descriptors/DescriptorUtils.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/descriptors/DescriptorUtils.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/descriptors/DescriptorUtils.kt index 554262b5d54..168a365903f 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/descriptors/DescriptorUtils.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/descriptors/DescriptorUtils.kt @@ -313,8 +313,8 @@ internal fun DeclarationDescriptor.getMemberScope(): MemberScope { // but it doesn't have much sense for native, // since externals don't have IR bodies. -// Enforce inlining of some constructors (ByteArray, IntArray, ...) -val mustInlineFunctions = setOf( +// Enforce inlining of some constructors +private val mustInlineFunctions = setOf( "kotlin.DoubleArray.", "kotlin.FloatArray.", "kotlin.ByteArray.", @@ -326,7 +326,7 @@ val mustInlineFunctions = setOf( ) internal val FunctionDescriptor.needsInlining: Boolean - get(): Boolean { + get() { val needs = this.isInline && !this.isExternal if (valueParameters.size != 2) return needs // Constructor must have two parameters. if (mustInlineFunctions.contains(fqNameSafe.toString())) return true