"If null to elvis" now converts to elvis also !is check right after initializer #KT-14032 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-10-10 15:53:23 +03:00
committed by Mikhail Glukhikh
parent 121f0ec810
commit 0903402282
15 changed files with 55 additions and 28 deletions
@@ -0,0 +1 @@
val result = ... <spot>?: return</spot>
@@ -0,0 +1,2 @@
val result = ...
<spot>if (result == null) return</spot>
@@ -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>