J2K: Get nullability from variable initializer when converting call
#KT-11534 In Progress
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
class Test {
|
||||
fun notNullString(p: Int): String {
|
||||
return "response"
|
||||
}
|
||||
|
||||
private val notNullInitializerField = notNullString(3)
|
||||
var notNullInitializerPublicField = notNullString(3)
|
||||
|
||||
fun testProperty() {
|
||||
notNullInitializerField[0]
|
||||
notNullInitializerPublicField[0]
|
||||
}
|
||||
|
||||
fun testLocalVariable() {
|
||||
val notNullInitializerVal = notNullString(3)
|
||||
notNullInitializerVal[0]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user