Fix tests ('infix')
This commit is contained in:
+1
-1
@@ -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
@@ -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
@@ -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> {}
|
||||
Reference in New Issue
Block a user