Minor. removed several tests with error calls.
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
var a = A()
|
||||
var b = A()
|
||||
|
||||
class A(var value: Int = 0)
|
||||
|
||||
fun prefix(inc: A.() -> A) {
|
||||
++a
|
||||
}
|
||||
|
||||
fun postfix(inc: A.() -> A) {
|
||||
b++
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
prefix { ++value; this }
|
||||
|
||||
if (a.value != 1) return "fail 1"
|
||||
|
||||
postfix { value++; this }
|
||||
|
||||
if (b.value != 1) return "fail 2"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user