Files
kotlin-fork/idea/testData/intentions/importMember/NestedClass1.kt.after
T
2016-03-25 18:11:34 +03:00

18 lines
255 B
Plaintext
Vendored

// INTENTION_TEXT: "Add import for 'ppp.Foo.Bar'"
// WITH_RUNTIME
package ppp
import ppp.Foo.Bar
sealed class Foo {
class Bar(val x: Int) : Foo()
}
fun test() {
val foo = <caret>Bar(5)
when (foo) {
is Bar -> println(foo.x)
}
}