Deprecated with ERROR preconditions with eager message.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user