diff --git a/compiler/testData/diagnostics/tests/Infix.kt b/compiler/testData/diagnostics/tests/Infix.kt index c519a9127a5..1ca06d751c4 100644 --- a/compiler/testData/diagnostics/tests/Infix.kt +++ b/compiler/testData/diagnostics/tests/Infix.kt @@ -8,11 +8,11 @@ class Example { infix fun Example.toExt(other: Example) = Pair(this, other) fun Example.toExtNonInfix(other: Example) = Pair(this, other) -infix fun Example.toExtWithExtraParams(other: Example, blah: Int = 0) = Pair(this, other) -fun Example.toExtNonInfixWithExtraParams(other: Example, blah: Int = 0) = Pair(this, other) +infix fun Example.toExtWithExtraParams(other: Example, blah: Int = 0) = Pair(this, other) +fun Example.toExtNonInfixWithExtraParams(other: Example, blah: Int = 0) = Pair(this, other) -infix fun Example.toExtDefaultValues(other: Example? = null, blah: Int = 0) = Pair(this, other) -fun Example.toExtNonInfixDefaultValues(other: Example? = null, blah: Int = 0) = Pair(this, other) +infix fun Example.toExtDefaultValues(other: Example? = null, blah: Int = 0) = Pair(this, other) +fun Example.toExtNonInfixDefaultValues(other: Example? = null, blah: Int = 0) = Pair(this, other) fun Example.withLambda(f: () -> Unit) = Pair(this, f) diff --git a/compiler/testData/diagnostics/tests/Infix.txt b/compiler/testData/diagnostics/tests/Infix.txt index 2f94f1a15d7..fdac755b1f3 100644 --- a/compiler/testData/diagnostics/tests/Infix.txt +++ b/compiler/testData/diagnostics/tests/Infix.txt @@ -2,7 +2,11 @@ package public fun test(): kotlin.Unit public infix fun Example.toExt(/*0*/ other: Example): Pair +public infix fun Example.toExtDefaultValues(/*0*/ other: Example? = ..., /*1*/ blah: kotlin.Int = ...): Pair public fun Example.toExtNonInfix(/*0*/ other: Example): Pair +public fun Example.toExtNonInfixDefaultValues(/*0*/ other: Example? = ..., /*1*/ blah: kotlin.Int = ...): Pair +public fun Example.toExtNonInfixWithExtraParams(/*0*/ other: Example, /*1*/ blah: kotlin.Int = ...): Pair +public infix fun Example.toExtWithExtraParams(/*0*/ other: Example, /*1*/ blah: kotlin.Int = ...): Pair public fun Example.withLambda(/*0*/ f: () -> kotlin.Unit): Pair kotlin.Unit> public final class Example { diff --git a/compiler/testData/diagnostics/tests/InfixModifierApplicability.txt b/compiler/testData/diagnostics/tests/InfixModifierApplicability.txt index a95acbacce6..4c73a55a4b6 100644 --- a/compiler/testData/diagnostics/tests/InfixModifierApplicability.txt +++ b/compiler/testData/diagnostics/tests/InfixModifierApplicability.txt @@ -5,6 +5,7 @@ public infix fun w2(/*0*/ s: kotlin.String): kotlin.Unit public infix fun w5(/*0*/ a: kotlin.Int, /*1*/ b: kotlin.Int): kotlin.Unit public infix fun kotlin.String.o1(/*0*/ o: kotlin.String): kotlin.String public infix fun kotlin.String.o2(/*0*/ o: kotlin.String, /*1*/ o2: kotlin.String? = ...): kotlin.String +public infix fun kotlin.String.o3(/*0*/ o: kotlin.String = ..., /*1*/ o2: kotlin.String? = ...): kotlin.String public infix fun A.to(/*0*/ that: B): Pair public infix fun kotlin.String.w3(): kotlin.Unit public infix fun kotlin.String.w4(/*0*/ a: kotlin.Int, /*1*/ b: kotlin.Int): kotlin.Unit