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 -1
View File
@@ -6,7 +6,7 @@ fun f(): Unit {
var x: Int? = <warning>1</warning>
x = 1
x + 1
x plus 1
x.plus(1)
x < 1
x += 1
+2 -2
View File
@@ -13,7 +13,7 @@ fun <T: Any, E> T.foo(<warning>x</warning> : E, y : A) : T {
class A
operator fun A.plus(<warning>a</warning> : Any) {
infix operator fun A.plus(<warning>a</warning> : Any) {
1.foo()
true.<error>foo</error>(<error><error>)</error></error>
@@ -21,7 +21,7 @@ operator fun A.plus(<warning>a</warning> : Any) {
<warning>1</warning>
}
operator fun A.plus(<warning>a</warning> : Int) {
infix operator fun A.plus(<warning>a</warning> : Int) {
<warning>1</warning>
}
+1 -1
View File
@@ -7,5 +7,5 @@ fun foo() {
//extract from library
fun <K, V> hashMap(<warning>p</warning>: Pair<K, V>): MutableMap<K, V> {<error>}</error>
fun <K, V> K.to(<warning>v</warning>: V): Pair<K, V> {<error>}</error>
infix fun <K, V> K.to(<warning>v</warning>: V): Pair<K, V> {<error>}</error>
class Pair<K, V> {}