Files
kotlin-fork/idea/testData/completion/smart/ClassObjectMembersForNullable.kt
T
Pavel V. Talanov 59f192ef90 Replace 'class object' with 'default object' in renderers and test data
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00

20 lines
493 B
Kotlin

package sample
class K {
default object {
val foo: K = K()
fun bar(): K = K()
val x: String = ""
var kk: K? = null
}
}
fun foo(){
val k : K? = <caret>
}
// EXIST: { lookupString:"foo", itemText:"K.foo", tailText:" (sample)", typeText:"K" }
// EXIST: { lookupString:"bar", itemText:"K.bar", tailText:"() (sample)", typeText:"K" }
// ABSENT: { itemText: "K.x" }
// EXIST: { lookupString:"kk", itemText:"K.kk", tailText:" (sample)", typeText:"K?" }