[K/N] Adjust moved special backend checks tests
^KT-61564
This commit is contained in:
committed by
Space Team
parent
8f12bf6cc8
commit
08bc0a6bd0
+2
@@ -1,3 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import platform.darwin.*
|
||||
|
||||
class Foo : NSObject() {
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
|
||||
+4
@@ -1,8 +1,12 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
@OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
|
||||
class Zzz : NSAssertionHandler() {
|
||||
@OptIn(kotlinx.cinterop.BetaInteropApi::class)
|
||||
@ObjCAction
|
||||
fun String.foo() = println(this)
|
||||
}
|
||||
|
||||
+4
@@ -1,8 +1,12 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
@OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
|
||||
class Zzz : NSAssertionHandler() {
|
||||
@OptIn(kotlinx.cinterop.BetaInteropApi::class)
|
||||
@ObjCAction
|
||||
fun foo(x: String) = println(x)
|
||||
}
|
||||
|
||||
+3
@@ -1,8 +1,11 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSAssertionHandler() {
|
||||
@OptIn(kotlinx.cinterop.BetaInteropApi::class)
|
||||
@ObjCAction
|
||||
fun foo() = 42
|
||||
}
|
||||
|
||||
+4
@@ -1,8 +1,12 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
@OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
|
||||
class Zzz : NSAssertionHandler() {
|
||||
@OptIn(kotlinx.cinterop.BetaInteropApi::class)
|
||||
@ObjCOutlet
|
||||
val x: NSObject get() = this
|
||||
}
|
||||
|
||||
+3
@@ -1,8 +1,11 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSAssertionHandler() {
|
||||
@OptIn(kotlinx.cinterop.BetaInteropApi::class)
|
||||
@ObjCOutlet
|
||||
var NSObject.x: NSObject
|
||||
get() = this
|
||||
|
||||
+3
@@ -1,8 +1,11 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSAssertionHandler() {
|
||||
@OptIn(kotlinx.cinterop.BetaInteropApi::class)
|
||||
@ObjCOutlet
|
||||
var x: String
|
||||
get() = "zzz"
|
||||
|
||||
+3
@@ -1,8 +1,11 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSAssertionHandler {
|
||||
@OptIn(kotlinx.cinterop.BetaInteropApi::class)
|
||||
@OverrideInit
|
||||
constructor(x: Int) { }
|
||||
}
|
||||
|
||||
+4
@@ -1,10 +1,14 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSString {
|
||||
@OptIn(kotlinx.cinterop.BetaInteropApi::class)
|
||||
@OverrideInit
|
||||
constructor(coder: NSCoder) { }
|
||||
|
||||
@Suppress("OVERRIDE_DEPRECATION")
|
||||
override fun initWithCoder(coder: NSCoder): String? = "zzz"
|
||||
}
|
||||
|
||||
+3
@@ -1,8 +1,11 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSAssertionHandler() {
|
||||
@OptIn(kotlinx.cinterop.BetaInteropApi::class)
|
||||
@ObjCAction
|
||||
fun foo(x: NSObject, y: NSObject, z: NSObject) { }
|
||||
}
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
|
||||
+1
-5
@@ -1,8 +1,4 @@
|
||||
/*
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
// FIR_IDENTICAL
|
||||
// KT-50109
|
||||
class Foo {
|
||||
companion object : platform.darwin.NSObjectMeta()
|
||||
|
||||
+1
-5
@@ -1,7 +1,3 @@
|
||||
/*
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
// FIR_IDENTICAL
|
||||
// KT-50109
|
||||
class Foo : platform.darwin.NSObjectMeta()
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user