Intention to convert assert to an if with throw
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
if (!true) {
|
||||
throw AssertionError(message())
|
||||
}
|
||||
}
|
||||
|
||||
fun message(): String = "text"
|
||||
Reference in New Issue
Block a user