EA-218160: Force-box only assignment l-values

This commit is contained in:
Yan Zhulanow
2020-01-15 23:10:34 +09:00
parent d539a870ed
commit 3027fab238
4 changed files with 63 additions and 4 deletions
@@ -0,0 +1,14 @@
package foo
fun main() {
val existing = mutableListOf<Int>()
for (i in 1..10) {
//Breakpoint!
if (existing.none { i % it != 0 }) {
existing += i
}
}
}
// EXPRESSION: existing.none { i % it != 0 }
// RESULT: 1: Z