Replace inlineOption(ONLY_LOCAL_RETURN) with crossinline in testData
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package builders
|
||||
|
||||
inline fun call(inlineOptions(InlineOption.ONLY_LOCAL_RETURN) init: () -> Unit) {
|
||||
inline fun call(crossinline init: () -> Unit) {
|
||||
return {
|
||||
init()
|
||||
}()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package builders
|
||||
|
||||
inline fun call(inlineOptions(InlineOption.ONLY_LOCAL_RETURN) init: () -> Unit) {
|
||||
inline fun call(crossinline init: () -> Unit) {
|
||||
return init()
|
||||
}
|
||||
//NO_CHECK_LAMBDA_INLINING
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package builders
|
||||
|
||||
inline fun call(inlineOptions(InlineOption.ONLY_LOCAL_RETURN) init: () -> Unit) {
|
||||
inline fun call(crossinline init: () -> Unit) {
|
||||
return init()
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package builders
|
||||
|
||||
inline fun call(inlineOptions(InlineOption.ONLY_LOCAL_RETURN) init: () -> Unit) {
|
||||
inline fun call(crossinline init: () -> Unit) {
|
||||
return object {
|
||||
fun run () {
|
||||
init()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package builders
|
||||
|
||||
inline fun call(inlineOptions(InlineOption.ONLY_LOCAL_RETURN) init: () -> Unit) {
|
||||
inline fun call(crossinline init: () -> Unit) {
|
||||
return init()
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package builders
|
||||
|
||||
inline fun call(inlineOptions(InlineOption.ONLY_LOCAL_RETURN) init: () -> Unit) {
|
||||
inline fun call(crossinline init: () -> Unit) {
|
||||
return init()
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package builders
|
||||
|
||||
inline fun call(inlineOptions(InlineOption.ONLY_LOCAL_RETURN) init: () -> Unit) {
|
||||
inline fun call(crossinline init: () -> Unit) {
|
||||
return init()
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user