Initialize ObjCExport during runtime init too (#3471)

as it may be required during execution of Kotlin code calling Obj-C.
This commit is contained in:
SvyatoslavScherbina
2019-10-18 18:54:52 +03:00
committed by GitHub
parent 0b8066602e
commit 6a2812a2d5
6 changed files with 37 additions and 3 deletions
+2 -1
View File
@@ -15,8 +15,8 @@ fun main(args: Array<String>) {
}
fun run() {
testTypeOps()
testConversions()
testTypeOps()
testWeakRefs()
testExceptions()
testBlocks()
@@ -191,6 +191,7 @@ fun testConversions() {
testMethodsOfAny(emptyList<Nothing>(), NSArray())
testMethodsOfAny(listOf(1, "foo"), nsArrayOf(1, "foo"))
testMethodsOfAny(42, NSNumber.numberWithInt(42), 17)
testMethodsOfAny(true, NSNumber.numberWithBool(true), false)
}
fun testMethodsOfAny(kotlinObject: Any, equalNsObject: NSObject, otherObject: Any = Any()) {