Test update for new ONLY_LOCAL_RETURN diagnostic

This commit is contained in:
Michael Bogdanov
2014-06-16 13:55:52 +04:00
parent da01a11137
commit ce71c5abde
21 changed files with 97 additions and 27 deletions
@@ -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 ->