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:
committed by
GitHub
parent
0b8066602e
commit
6a2812a2d5
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user