[K/N] Add diagnostic directives to test sources

^KT-61564
This commit is contained in:
Vladimir Sukharev
2023-11-22 21:35:37 +01:00
committed by Space Team
parent dbba6d09ff
commit 28ee61c57d
12 changed files with 34 additions and 22 deletions
@@ -1,7 +1,9 @@
// FIR_IDENTICAL
// WITH_PLATFORM_LIBS
import platform.darwin.*
import platform.Foundation.*
// KT-42161, KT-63699: Must be not `NOTHING_TO_OVERRIDE` diagnostic, but `overriding variadic Objective-C methods is not supported`
class Zzz : NSAssertionHandler() {
override fun handleFailureInFunction(functionName: String, file: String, lineNumber: NSInteger /* = Long */, description: String?, vararg args: Any?) { }
<!NOTHING_TO_OVERRIDE!>override<!> fun handleFailureInFunction(functionName: String, file: String, lineNumber: NSInteger /* = Long */, description: String?, vararg args: Any?) { }
}
@@ -1,4 +1,5 @@
// FIR_IDENTICAL
// WITH_PLATFORM_LIBS
// KT-50109
class Foo {
companion object : platform.darwin.NSObjectMeta()
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// WITH_PLATFORM_LIBS
// KT-50109
class Foo : platform.darwin.NSObjectMeta()