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"
}
-8
View File
@@ -1,8 +0,0 @@
fun foo(compareTo: Any.(p: Function0<Int>) -> Int, p: () -> Int) {
p < p
}
fun box(): String {
foo({ it() }, { 42 })
return "OK"
}
@@ -1,10 +0,0 @@
class A
fun foo(plusAssign: A.(A) -> Unit) {
A() += A()
}
fun box(): String {
foo { }
return "OK"
}