Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/genericAssignmentOperator.fir.kt
T
2020-07-08 12:13:31 +03:00

9 lines
109 B
Kotlin
Vendored

class R<T>
fun <T> f(): R<T> = R<T>()
operator fun Int.plusAssign(y: R<Int>) {}
fun box() {
1 += f()
}