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