Fix tests ('infix')
This commit is contained in:
+4
-5
@@ -1,16 +1,15 @@
|
||||
class A() {
|
||||
operator fun plus(<!UNUSED_PARAMETER!>i<!> : Int) {}
|
||||
operator infix fun plus(<!UNUSED_PARAMETER!>i<!> : Int) {}
|
||||
operator fun minus() {}
|
||||
operator fun contains(<!UNUSED_PARAMETER!>a<!> : Any?) : Boolean = true
|
||||
operator infix fun contains(<!UNUSED_PARAMETER!>a<!> : Any?) : Boolean = true
|
||||
}
|
||||
|
||||
operator fun A.div(<!UNUSED_PARAMETER!>i<!> : Int) {}
|
||||
operator fun A?.times(<!UNUSED_PARAMETER!>i<!> : Int) {}
|
||||
operator infix fun A.div(<!UNUSED_PARAMETER!>i<!> : Int) {}
|
||||
operator infix fun A?.times(<!UNUSED_PARAMETER!>i<!> : Int) {}
|
||||
|
||||
fun test(x : Int?, a : A?) {
|
||||
x<!UNSAFE_CALL!>.<!>plus(1)
|
||||
x?.plus(1)
|
||||
x <!UNSAFE_INFIX_CALL!>plus<!> 1
|
||||
x <!UNSAFE_INFIX_CALL!>+<!> 1
|
||||
<!UNSAFE_CALL!>-<!>x
|
||||
x<!UNSAFE_CALL!>.<!>minus()
|
||||
|
||||
+4
-4
@@ -1,15 +1,15 @@
|
||||
package
|
||||
|
||||
public fun test(/*0*/ x: kotlin.Int?, /*1*/ a: A?): kotlin.Unit
|
||||
public operator fun A.div(/*0*/ i: kotlin.Int): kotlin.Unit
|
||||
public operator fun A?.times(/*0*/ i: kotlin.Int): kotlin.Unit
|
||||
public operator infix fun A.div(/*0*/ i: kotlin.Int): kotlin.Unit
|
||||
public operator infix fun A?.times(/*0*/ i: kotlin.Int): kotlin.Unit
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public final operator fun contains(/*0*/ a: kotlin.Any?): kotlin.Boolean
|
||||
public final operator infix fun contains(/*0*/ a: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final operator fun minus(): kotlin.Unit
|
||||
public final operator fun plus(/*0*/ i: kotlin.Int): kotlin.Unit
|
||||
public final operator infix fun plus(/*0*/ i: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user