Replace inlineOption(ONLY_LOCAL_RETURN) with crossinline in testData

This commit is contained in:
Denis Zharkov
2015-09-15 10:11:19 +03:00
parent bae3320d52
commit 9adde77c47
43 changed files with 60 additions and 60 deletions
@@ -1,10 +1,10 @@
package builders
//TODO there is a bug in asm it's skips linenumber on same line on reading bytecode
inline fun call(inlineOptions(InlineOption.ONLY_LOCAL_RETURN) init: () -> Unit) {
inline fun call(crossinline init: () -> Unit) {
"1"; return init()
}
inline fun test(inlineOptions(InlineOption.ONLY_LOCAL_RETURN) p: () -> String): String {
inline fun test(crossinline p: () -> String): String {
var res = "Fail"
call {