ConvertIfWithThrowToAssertIntention: generate assert with lazy argument

This commit is contained in:
Natalia Ukhorskaya
2015-12-16 15:24:28 +03:00
parent 2dc1ba1d62
commit 2c29f6f5ab
7 changed files with 7 additions and 7 deletions
@@ -1,6 +1,6 @@
// WITH_RUNTIME
fun foo() {
kotlin.assert(!true, "text")
kotlin.assert(!true) { "text" }
}
fun assert(x: Boolean, y: Any) {}