Generate nullability annotations on this receiver in DefaultImpls. Don't generate nullability annotations in private methods
#KT-36969 Fixed
This commit is contained in:
+19
-4
@@ -1,18 +1,33 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
interface A
|
||||
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
annotation class Anno
|
||||
|
||||
interface B {
|
||||
fun foo()
|
||||
fun foo(a: String)
|
||||
}
|
||||
|
||||
interface C {
|
||||
val bar: Int
|
||||
}
|
||||
|
||||
@Anno
|
||||
interface D {
|
||||
fun baz() = 5
|
||||
fun baz(p: String) = 5
|
||||
private fun test(a: String) = "123"
|
||||
}
|
||||
|
||||
interface E {
|
||||
class InsideE
|
||||
}
|
||||
}
|
||||
|
||||
@Anno
|
||||
interface F {
|
||||
var bar: String
|
||||
get() = "123"
|
||||
set(value) {}
|
||||
|
||||
private var baz: String
|
||||
get() = "123"
|
||||
set(value) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user