Merge pull request #450 from wutalman/assert_to_if

KT-4576: (Bug fix) Intention to transform an if an AssertionError throw into an assert
This commit is contained in:
Zalim Bashorov
2014-04-22 17:30:22 +04:00
4 changed files with 22 additions and 1 deletions
@@ -0,0 +1,4 @@
// WITH_RUNTIME
fun foo() {
kotlin.<caret>assert(true, "text")
}
@@ -0,0 +1,6 @@
// WITH_RUNTIME
fun foo() {
if (!true) {
throw AssertionError("text")
}
}