拒绝赋值后,这段程序会输出什么?

来自 委托属性
Kotlin 2.4.10 入门 2分钟

拒绝赋值后,这段程序会输出什么?

kotlin
import kotlin.properties.Delegates

var quantity: Int by Delegates.vetoable(1) { _, old, new ->
    println("$old -> $new")
    new >= 0
}

fun main() {
    quantity = 4
    quantity = -2
    println(quantity)
}
在试验场中打开
报告错误