Fix tests ('infix')

This commit is contained in:
Yan Zhulanow
2015-09-30 21:27:45 +03:00
parent 7e8674c6ee
commit 1b01e7a85a
65 changed files with 146 additions and 132 deletions
@@ -1,4 +1,4 @@
tailrec fun Int.test(x : Int) : Int {
tailrec infix fun Int.test(x : Int) : Int {
if (this > 1) {
return (this - 1) test x
}
@@ -1,4 +1,4 @@
package
public fun box(): kotlin.String
@kotlin.tailrec() public fun kotlin.Int.test(/*0*/ x: kotlin.Int): kotlin.Int
@kotlin.tailrec() public infix fun kotlin.Int.test(/*0*/ x: kotlin.Int): kotlin.Int
@@ -1,5 +1,5 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
tailrec fun Int.foo(x: Int) {
tailrec infix fun Int.foo(x: Int) {
if (x == 0) return
val xx = x - 1
return 1 foo xx
@@ -1,4 +1,4 @@
package
public fun box(): kotlin.String
@kotlin.tailrec() public fun kotlin.Int.foo(/*0*/ x: kotlin.Int): kotlin.Unit
@kotlin.tailrec() public infix fun kotlin.Int.foo(/*0*/ x: kotlin.Int): kotlin.Unit