Frontend: Avoid retypechecking the right hand side of assignment operators

This commit is contained in:
Steven Schäfer
2019-10-31 13:11:48 +01:00
committed by Mikhail Glukhikh
parent 41c81d25a0
commit ab506c1579
6 changed files with 44 additions and 1 deletions
@@ -0,0 +1,9 @@
class R<T>
fun <T> f(): R<T> = R<T>()
operator fun Int.plusAssign(<!UNUSED_PARAMETER!>y<!>: R<Int>) {}
fun box() {
1 += f()
}