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:
Natalia Ukhorskaya
2015-12-16 15:45:19 +03:00
parent ce3d53d2ee
commit 6bfbec8c88
4 changed files with 8 additions and 0 deletions
@@ -1,4 +1,6 @@
// WITH_RUNTIME
// SKIP_ERRORS_AFTER
// TODO: 'return' is not allowed here
fun foo() {
if (!true) {
throw AssertionError({