Simplify message expression from lambda argument when converting assert to if.
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
if (!true) {
|
||||
throw AssertionError({ "text" }())
|
||||
throw AssertionError(if (true) "text" else return)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user