Deprecated with ERROR preconditions with eager message.
This commit is contained in:
@@ -8,14 +8,14 @@ fun bar(s: String): Int = s.length()
|
||||
fun String.baz(): Int = this.length()
|
||||
|
||||
fun check(f: KFunction<Int>) {
|
||||
assert(f.javaConstructor == null, "Fail f constructor")
|
||||
assert(f.javaMethod != null, "Fail f method")
|
||||
assert(f.javaConstructor == null) { "Fail f constructor" }
|
||||
assert(f.javaMethod != null) { "Fail f method" }
|
||||
val m = f.javaMethod!!
|
||||
|
||||
assert(m.kotlinFunction != null, "Fail m function")
|
||||
assert(m.kotlinFunction != null) { "Fail m function" }
|
||||
val ff = m.kotlinFunction!!
|
||||
|
||||
assert(f == ff, "Fail f != ff")
|
||||
assert(f == ff) { "Fail f != ff" }
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
|
||||
Reference in New Issue
Block a user