Files
kotlin-fork/idea/testData/intentions/convertAssertToIf/lambdaMultiStatementMessageOutsideParentheses.kt.after
T
Natalia Ukhorskaya 6bfbec8c88 ConvertAssertToIf may produce code with error
// TODO: we could generate anonymous function instead of lambda expression when there is a return
2015-12-17 11:11:28 +03:00

11 lines
204 B
Plaintext
Vendored

// WITH_RUNTIME
// SKIP_ERRORS_AFTER
// TODO: 'return' is not allowed here
fun foo() {
if (!true) {
throw AssertionError({
if (false) return
"text"
}())
}
}