mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
Test update for new ONLY_LOCAL_RETURN diagnostic
This commit is contained in:
@@ -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() }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user