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