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,5 +1,5 @@
// WITH_RUNTIME
fun foo() {
val x = true
assert(!(x && false), "text")
assert(!(x && false)) { "text" }
}