Reserve yield if it isn't function call.

This commit is contained in:
Stanislav Erokhin
2017-02-10 20:21:52 +03:00
parent 9eae929084
commit 3efda0e45a
24 changed files with 466 additions and 3 deletions
+23
View File
@@ -0,0 +1,23 @@
package
package p1 {
package p1.yield {
public val yield: kotlin.Int = 5
public fun bar(/*0*/ yield: kotlin.Int = ...): kotlin.Unit
public fun foo(): kotlin.Unit
public fun yield(/*0*/ i: (kotlin.Int) -> kotlin.Unit): kotlin.Unit
public fun yield(/*0*/ yield: kotlin.Int): kotlin.Unit
}
}
package p2 {
package p2.yield {
public val yield: kotlin.Int = 5
public fun bar(/*0*/ yield: kotlin.Int = ...): kotlin.Unit
public fun foo(): kotlin.Unit
public fun yield(/*0*/ i: (kotlin.Int) -> kotlin.Unit): kotlin.Unit
public fun yield(/*0*/ yield: kotlin.Int): kotlin.Unit
}
}