Refactoring: checkType && checkImplicitCast returned to DataFlowUtils, PROCESSED unboxing returned, StringTemplateVisitor made local

This commit is contained in:
Mikhail Glukhikh
2015-04-23 14:00:08 +03:00
parent 8b241b8c05
commit 525b9e63ae
9 changed files with 78 additions and 66 deletions
@@ -3,7 +3,9 @@ fun bar(): Boolean { return true }
public fun foo(x: String?): Int {
var y: Any
do {
y = ""
// This and hashCode() below are needed just to prevent
// UNINITIALIZED_VARIABLE, UNUSED_VALUE, ...
y = ""
y = if (x == null) break else <!DEBUG_INFO_SMARTCAST!>x<!>
} while (bar())
y.hashCode()