Files
kotlin-fork/idea/idea-completion/testData/weighers/smart/SmartPriority2.kt
T
Valentin Kipyatkov bb808b5620 Created module idea-test-framework and moved classes needed for idea tests there
Moved tests for completion and their test data into module idea-completion
2015-04-14 18:53:01 +03:00

29 lines
478 B
Kotlin
Vendored

var nonNullable: C = C()
var nullableX: C? = null
var nullableFoo: C? = null
abstract class C {
companion object {
val INSTANCE_X = C()
val INSTANCE_FOO = C()
}
}
fun foo(pFoo: C, s: String) {
val local = C()
foo(<caret>)
}
// ORDER: "pFoo, s"
// ORDER: pFoo
// ORDER: nullableFoo
// ORDER: nullableFoo
// ORDER: INSTANCE_FOO
// ORDER: local
// ORDER: nonNullable
// ORDER: nullableX
// ORDER: nullableX
// ORDER: INSTANCE_X
// ORDER: object