Generate not-null assertions only for descriptors coming from Java
Introduce BindingContext.IS_DECLARED_IN_JAVA, store that info in JavaDescriptorResolver
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class A {
|
||||
val x: Int = 42
|
||||
|
||||
fun foo(): String = ""
|
||||
|
||||
class object {
|
||||
val y: Any? = 239
|
||||
|
||||
fun bar(): String = ""
|
||||
}
|
||||
}
|
||||
|
||||
fun baz(): String = ""
|
||||
Reference in New Issue
Block a user