Files
kotlin-fork/compiler/testData/codegen/box
Denis Zharkov 2286027bed Fix verify error with 'return when/if/try' in suspend function
The problem appears for tail-optimized suspend functions,
we erroneously assumed that when/if/try expressions in tail-call
position have simple types like `I` while actually, they can return SUSPENDED
object, i.e. must have `java/lang/Object` as return type.

But this only concerns branching operations in tail-call position,
so we have to make an additional analysis for remembering whether
a given expression is in a tail-call position.

Also, it's important here that we now assume
the return type of the current function  as `java/lang/Object`
that is necessary to avoid wrong checkcasts.

 #KT-15364 Fixed
2017-01-14 13:24:53 +03:00
..
2016-12-20 15:47:37 +03:00
2016-11-21 18:20:33 +03:00
2017-01-13 10:31:07 +03:00
2016-11-09 21:41:12 +03:00
2016-11-09 21:41:12 +03:00
2017-01-13 10:31:07 +03:00
2016-11-09 21:41:12 +03:00
2016-11-21 18:20:33 +03:00
2016-11-09 21:41:12 +03:00
2016-11-09 21:41:12 +03:00
2016-11-09 21:41:12 +03:00
2016-11-09 21:41:12 +03:00
2016-11-21 18:20:33 +03:00
2016-11-21 18:20:33 +03:00
2016-11-09 21:41:12 +03:00
2016-12-29 16:15:49 +03:00
2016-11-09 21:41:12 +03:00
2016-11-17 13:29:26 +03:00
2016-11-09 21:41:12 +03:00
2016-11-09 21:41:12 +03:00