Minor. removed several tests with error calls.

This commit is contained in:
Stanislav Erokhin
2016-06-10 17:27:09 +03:00
parent c414f456a4
commit 03241419bd
22 changed files with 1 additions and 582 deletions
@@ -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"
}