Enable method signature checks when overriding Objective-C method
This commit is contained in:
committed by
SvyatoslavScherbina
parent
11a11378ff
commit
a0dc2ecef2
@@ -48,8 +48,8 @@ fun MutablePairProtocol.swap() {
|
||||
}
|
||||
|
||||
class Bar : Foo() {
|
||||
override fun helloWithPrinter(printer: PrinterProtocol) = memScoped {
|
||||
printer.print("Hello from Kotlin".cstr.getPointer(memScope))
|
||||
override fun helloWithPrinter(printer: PrinterProtocol?) = memScoped {
|
||||
printer!!.print("Hello from Kotlin".cstr.getPointer(memScope))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user