Test for KT-3444 Front-end doesn't check if local function or function of anonymous class returns value

#KT-3444 obsolete
This commit is contained in:
Evgeny Gerashchenko
2014-01-14 00:33:02 +04:00
parent b3ab147f6a
commit c924a5d097
2 changed files with 18 additions and 0 deletions
@@ -0,0 +1,13 @@
fun box() {
fun local():Int {
<!NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY!>}<!>
}
trait X {
fun f(): Boolean
}
val m = object : X {
override fun f(): Boolean {
<!NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY!>}<!>
}