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,5 +1,7 @@
package test
import kotlin.InlineOption.*
public class Data()
public class Input(val d: Data) : Closeable {
@@ -27,4 +29,4 @@ public fun Input.copyTo(output: Output, size: Int): Long {
}
public inline fun with2<T>(receiver : T, body : T.() -> Unit) : Unit = {receiver.body()}()
public inline fun with2<T>(receiver : T, inlineOptions(ONLY_LOCAL_RETURN) body : T.() -> Unit) : Unit = {receiver.body()}()