02d309c9cf
#KT-11481 Fixed
18 lines
255 B
Plaintext
Vendored
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 = Bar(5)
|
|
|
|
when (foo) {
|
|
is <caret>Bar -> println(foo.x)
|
|
}
|
|
}
|