Rework stubs for interop globals passed by value
#KT-21855 Fixed
This commit is contained in:
committed by
SvyatoslavScherbina
parent
670d05a4f3
commit
b700f96e0c
@@ -48,6 +48,18 @@ fun run() {
|
||||
// toString (virtually):
|
||||
println(map.keys.map { it.toString() }.min() == foo.description())
|
||||
}
|
||||
|
||||
println(globalString)
|
||||
autoreleasepool {
|
||||
globalString = "Another global string"
|
||||
}
|
||||
println(globalString)
|
||||
|
||||
println(globalObject)
|
||||
globalObject = object : NSObject() {
|
||||
override fun description() = "global object"
|
||||
}
|
||||
println(globalObject)
|
||||
}
|
||||
|
||||
fun MutablePairProtocol.swap() {
|
||||
|
||||
Reference in New Issue
Block a user