EA-218160: Force-box only assignment l-values
This commit is contained in:
Vendored
+14
@@ -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
|
||||
Reference in New Issue
Block a user