From 17b757bc2b59c069a7646d32cae14aa230d4b0d1 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Thu, 27 Oct 2016 18:58:27 +0300 Subject: [PATCH] runtime: comment String.plus to workaround improper virtual call generation resulting in link error --- runtime/src/main/kotlin/kotlin_native/String.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime/src/main/kotlin/kotlin_native/String.kt b/runtime/src/main/kotlin/kotlin_native/String.kt index 1387b1d0d0a..bee4d034fbf 100644 --- a/runtime/src/main/kotlin/kotlin_native/String.kt +++ b/runtime/src/main/kotlin/kotlin_native/String.kt @@ -7,9 +7,12 @@ class String { @SymbolName("Kotlin_String_hashCode") external public override fun hashCode(): Int +/* TODO: calling to virtual method (plusImpl) results in link error; uncomment after supporting +calling virtual methods in translator public operator fun plus(other: Any?): String { return plusImpl(other.toString()) } +*/ public val length: Int get() = getStringLength()