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

16 lines
243 B
Kotlin
Vendored

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