[K/N] Move special backend checks test sources to diagnostic tests folder
^KT-61564
This commit is contained in:
committed by
Space Team
parent
3d0a91bf3c
commit
8f12bf6cc8
+4
@@ -0,0 +1,4 @@
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
fun foo() = NSLog("zzz", {})
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Z
|
||||
|
||||
fun foo() = NSLog("zzz", Z())
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Foo : NSObject(), NSPortDelegateProtocol {
|
||||
fun foo() {
|
||||
super.handlePortMessage(TODO())
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import platform.darwin.*
|
||||
|
||||
class Foo : NSObject() {
|
||||
companion object : NSObjectMeta() {
|
||||
fun bar() {
|
||||
super.hash()
|
||||
}
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSAssertionHandler() {
|
||||
override fun handleFailureInFunction(functionName: String, file: String, lineNumber: NSInteger /* = Long */, description: String?, vararg args: Any?) { }
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
interface Zzz : NSCopyingProtocolMeta
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
open class Zzz : NSAssertionHandler()
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSAssertionHandler() {
|
||||
companion object {
|
||||
val Z = 42
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
interface I
|
||||
|
||||
class Zzz : NSAssertionHandler(), I
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSCopyingProtocolMeta
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSAssertionHandler() {
|
||||
override fun toString() = "zzz"
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSAssertionHandler() {
|
||||
@ObjCAction
|
||||
fun String.foo() = println(this)
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSAssertionHandler() {
|
||||
@ObjCAction
|
||||
fun foo(x: String) = println(x)
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSAssertionHandler() {
|
||||
@ObjCAction
|
||||
fun foo() = 42
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSAssertionHandler() {
|
||||
@ObjCOutlet
|
||||
val x: NSObject get() = this
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSAssertionHandler() {
|
||||
@ObjCOutlet
|
||||
var NSObject.x: NSObject
|
||||
get() = this
|
||||
set(value: NSObject) { }
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSAssertionHandler() {
|
||||
@ObjCOutlet
|
||||
var x: String
|
||||
get() = "zzz"
|
||||
set(value: String) { }
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSAssertionHandler {
|
||||
@OverrideInit
|
||||
constructor(x: Int) { }
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSString {
|
||||
@OverrideInit
|
||||
constructor(coder: NSCoder) { }
|
||||
|
||||
override fun initWithCoder(coder: NSCoder): String? = "zzz"
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSAssertionHandler() {
|
||||
@ObjCAction
|
||||
fun foo(x: NSObject, y: NSObject, z: NSObject) { }
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import kotlinx.cinterop.*
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
class Zzz : NSValue()
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
fun foo() = println(NSAssertionHandler()::handleFailureInFunction)
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
fun foo() = NSAssertionHandler().handleFailureInFunction("zzz", "zzz", 0L, null, "qzz")
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
fun foo(s: Array<Any?>) = NSAssertionHandler().handleFailureInFunction("zzz", "zzz", 0L, null, *s)
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// KT-50109
|
||||
class Foo {
|
||||
companion object : platform.darwin.NSObjectMeta()
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// KT-50109
|
||||
class Foo : platform.darwin.NSObjectMeta()
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import platform.darwin.*
|
||||
import platform.Foundation.*
|
||||
|
||||
fun foo(s: Array<Any?>) = NSLog("zzz", *s)
|
||||
Reference in New Issue
Block a user