Deprecated with ERROR preconditions with eager message.

This commit is contained in:
Ilya Gorbunov
2015-11-07 16:25:36 +03:00
parent 07c570f35d
commit 3639afafce
11 changed files with 40 additions and 62 deletions
@@ -11,14 +11,14 @@ class Secondary {
}
fun check(f: KFunction<Any>) {
assert(f.javaMethod == null, "Fail f method")
assert(f.javaConstructor != null, "Fail f constructor")
assert(f.javaMethod == null) { "Fail f method" }
assert(f.javaConstructor != null) { "Fail f constructor" }
val c = f.javaConstructor!!
assert(c.kotlinFunction != null, "Fail m function")
assert(c.kotlinFunction != null) { "Fail m function" }
val ff = c.kotlinFunction!!
assert(f == ff, "Fail f != ff")
assert(f == ff) { "Fail f != ff" }
}
fun box(): String {