If then to elvis: now not applicable for is with nullable type #KT-14545 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
fun foo(x: CharSequence?) {
|
||||
val y = if (x is String?) {
|
||||
x
|
||||
}
|
||||
else {
|
||||
(x as CharSequence).toString()
|
||||
}<caret>
|
||||
}
|
||||
Reference in New Issue
Block a user