Test update for new ONLY_LOCAL_RETURN diagnostic
This commit is contained in:
+5
-3
@@ -1,6 +1,8 @@
|
||||
import test.*
|
||||
|
||||
inline fun test1(param: () -> String): String {
|
||||
import kotlin.InlineOption.*
|
||||
|
||||
inline fun test1(inlineOptions(ONLY_LOCAL_RETURN) param: () -> String): String {
|
||||
var result = "fail"
|
||||
inlineFun("1") { c ->
|
||||
{
|
||||
@@ -18,7 +20,7 @@ inline fun test1(param: () -> String): String {
|
||||
}
|
||||
|
||||
|
||||
inline fun test2(param: () -> String): String {
|
||||
inline fun test2(inlineOptions(ONLY_LOCAL_RETURN) param: () -> String): String {
|
||||
var result = "fail"
|
||||
inlineFun("2") { a ->
|
||||
{
|
||||
@@ -31,7 +33,7 @@ inline fun test2(param: () -> String): String {
|
||||
return result
|
||||
}
|
||||
|
||||
inline fun test3(param: () -> String): String {
|
||||
inline fun test3(inlineOptions(ONLY_LOCAL_RETURN) param: () -> String): String {
|
||||
var result = "fail"
|
||||
inlineFun("2") { d ->
|
||||
inlineFun("1") { c ->
|
||||
|
||||
Reference in New Issue
Block a user