02d309c9cf
#KT-11481 Fixed
16 lines
243 B
Kotlin
Vendored
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.<caret>Bar(5)
|
|
|
|
when (foo) {
|
|
is Foo.Bar -> println(foo.x)
|
|
}
|
|
}
|