"If null to elvis" now converts to elvis also !is check right after initializer #KT-14032 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
121f0ec810
commit
0903402282
+1
@@ -0,0 +1 @@
|
||||
val result = ... <spot>?: return</spot>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
val result = ...
|
||||
<spot>if (result == null) return</spot>
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
Converts an if expression checking variable being null or not of a type right after initializing it to an elvis operator in the initializer (if applicable)
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user