diff --git a/compiler/testData/diagnostics/tests/operatorsOverloading/AssignOperatorAmbiguity.jet b/compiler/testData/diagnostics/tests/operatorsOverloading/AssignOperatorAmbiguity.jet new file mode 100644 index 00000000000..e08c71ea005 --- /dev/null +++ b/compiler/testData/diagnostics/tests/operatorsOverloading/AssignOperatorAmbiguity.jet @@ -0,0 +1,17 @@ +//KT-1820 Write test for ASSIGN_OPERATOR_AMBIGUITY +package kt1820 + +class MyInt(val i: Int) { + fun plus(m: MyInt) : MyInt = MyInt(m.i + i) +} + +fun Any.plusAssign(a: Any) {} + +fun test(m: MyInt) { + m += m + + var i = 1 + i += 34 +} + +