Generate nullability annotations on this receiver in DefaultImpls. Don't generate nullability annotations in private methods

#KT-36969 Fixed
This commit is contained in:
Mikhail Bogdanov
2020-06-08 11:57:16 +02:00
parent 5bdf3d5757
commit b8f0ad2111
17 changed files with 121 additions and 37 deletions
+19 -4
View File
@@ -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) {}
}