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({
|
||||
val value = 1
|
||||
"text and $value"
|
||||
}())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user