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:
Alexander Udalov
2012-10-02 22:44:57 +04:00
parent 988af8208c
commit bf779b4ca5
7 changed files with 89 additions and 5 deletions
@@ -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 = ""
@@ -0,0 +1,7 @@
fun bar() {
val x = A().x
val foo = A().foo()
val y = A.y
val bar = A.bar()
val baz = baz()
}