Introduced the cache of temporary variables and expressions.

Used the cached temporary variables in SafeCall and SureCall instead create a new temporary variable.
This commit is contained in:
Zalim Bashorov
2013-06-15 15:55:10 +04:00
parent ee5c7c8f5c
commit a69744e6fb
7 changed files with 52 additions and 12 deletions
@@ -85,5 +85,9 @@ fun box(): String {
if (!(testCallOrder(1, 2, 3, 4)))
return "failed when test calling order when using spread operator without args"
val baz: Bar? = Bar(1)
if (!(baz!!)?.test(0, 1, 1))
return "failed when combined SureCall and SafeCall, maybe we lost cached expression"
return "OK"
}