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

View File

@@ -1,6 +1,8 @@
package zzz
inline fun calc(lambda: () -> Int): Int {
import kotlin.InlineOption.*
inline fun calc(inlineOptions(ONLY_LOCAL_RETURN) lambda: () -> Int): Int {
return doCalc { lambda() }
}