From e81b1388d503ce1045bc92a3c02a486d208e5720 Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Thu, 17 Aug 2017 11:37:25 +0300 Subject: [PATCH] [cinterop][objC][debug] warkarond foe fail of debug build --- .../src/native/kotlin/kotlinx/cinterop/ObjectiveCImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Interop/Runtime/src/native/kotlin/kotlinx/cinterop/ObjectiveCImpl.kt b/Interop/Runtime/src/native/kotlin/kotlinx/cinterop/ObjectiveCImpl.kt index 814d25200e6..bf6d15fa5e9 100644 --- a/Interop/Runtime/src/native/kotlin/kotlinx/cinterop/ObjectiveCImpl.kt +++ b/Interop/Runtime/src/native/kotlin/kotlinx/cinterop/ObjectiveCImpl.kt @@ -30,7 +30,7 @@ abstract class ObjCObjectBase protected constructor() : ObjCObject { abstract class ObjCObjectBaseMeta protected constructor() : ObjCObjectBase(), ObjCObjectMeta {} -external fun optional(): Nothing +fun optional(): Nothing = throw RuntimeException("Do not call me!!!") /** * The runtime representation of any [ObjCObject].