Fix type checking of local return inside return expression

#KT-16426 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-04-07 16:37:35 +03:00
parent 7f287a4230
commit c9b468581a
9 changed files with 106 additions and 23 deletions
@@ -0,0 +1,13 @@
interface ClassData
fun f() = object : ClassData {
val someInt: Int
get() {
return 5
}
}
fun box(): String{
f()
return "OK"
}