KT-11481 "Add import" intention is not available for 'is' branches in when
#KT-11481 Fixed
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user