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