ConvertIfWithThrowToAssertIntention: generate assert with lazy argument
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
kotlin.assert(!true, "text")
|
||||
kotlin.assert(!true) { "text" }
|
||||
}
|
||||
|
||||
fun assert(x: Boolean, y: Any) {}
|
||||
Reference in New Issue
Block a user