Added IfThenToDoubleBangIntention

This commit is contained in:
Zack Grannan
2014-04-14 15:26:53 -07:00
committed by Zalim Bashorov
parent 8476a790bd
commit aec5ae5dd4
57 changed files with 623 additions and 0 deletions
@@ -0,0 +1 @@
foo(maybeSomething!!)
@@ -0,0 +1 @@
foo(if (maybeSomething != null) maybeSomething else throw KotlinNullPointerException())
@@ -0,0 +1,6 @@
<html>
<body>
Converts an if-then expression that checks if a value is null to an equivalent expression
using the '!!' operator.
</body>
</html>