Mark builtins and stdlib functions with 'infix'

This commit is contained in:
Yan Zhulanow
2015-09-29 19:22:33 +03:00
parent 1238e93b9f
commit d28ecc2316
7 changed files with 95 additions and 86 deletions
+3 -3
View File
@@ -29,17 +29,17 @@ public class Boolean private () : Comparable<Boolean> {
/**
* Performs a logical `and` operation between this Boolean and the [other] one.
*/
public fun and(other: Boolean): Boolean
public infix fun and(other: Boolean): Boolean
/**
* Performs a logical `or` operation between this Boolean and the [other] one.
*/
public fun or(other: Boolean): Boolean
public infix fun or(other: Boolean): Boolean
/**
* Performs a logical `xor` operation between this Boolean and the [other] one.
*/
public fun xor(other: Boolean): Boolean
public infix fun xor(other: Boolean): Boolean
public override fun compareTo(other: Boolean): Int
}