"Introduce 'when' subject" intention: suggest for "this" expression

#KT-12567 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-05-14 22:54:22 +09:00
committed by Mikhail Glukhikh
parent aaf533df16
commit fef0cc5d2b
4 changed files with 22 additions and 4 deletions
@@ -0,0 +1,7 @@
fun Number.test() {
<caret>when {
this is Int -> {}
this is Long -> {}
this is Short -> {}
}
}
@@ -0,0 +1,7 @@
fun Number.test() {
<caret>when (this) {
is Int -> {}
is Long -> {}
is Short -> {}
}
}