Add quick fixes for SMARTCAST_IMPOSSIBLE in 'if' #KT-27184 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
a0162adbf9
commit
cf3215b96e
@@ -0,0 +1,10 @@
|
||||
// "Replace 'if' expression with safe access expression" "true"
|
||||
class Test {
|
||||
var x: String? = ""
|
||||
|
||||
fun test() {
|
||||
if (x != null) {
|
||||
<caret>x.length
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user