"Introduce 'when' subject" intention: suggest for "this" expression
#KT-12567 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
aaf533df16
commit
fef0cc5d2b
@@ -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 -> {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user