ConvertAssertToIf may produce code with error
// TODO: we could generate anonymous function instead of lambda expression when there is a return
This commit is contained in:
Vendored
+2
@@ -1,4 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
// SKIP_ERRORS_AFTER
|
||||
// TODO: 'return' is not allowed here
|
||||
fun foo() {
|
||||
<caret>assert(true) {
|
||||
if (false) return
|
||||
|
||||
Reference in New Issue
Block a user