[K/N] Add diagnostic directives to test sources
^KT-61564
This commit is contained in:
committed by
Space Team
parent
dbba6d09ff
commit
28ee61c57d
+3
-1
@@ -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
@@ -1,4 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
// KT-50109
|
||||
class Foo {
|
||||
companion object : platform.darwin.NSObjectMeta()
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_PLATFORM_LIBS
|
||||
// KT-50109
|
||||
class Foo : platform.darwin.NSObjectMeta()
|
||||
Reference in New Issue
Block a user