Expected return type is in use now during function literal analysis #KT-9134 Fixed

This commit is contained in:
Mikhail Glukhikh
2015-09-11 21:01:05 +03:00
parent 65b77558a1
commit 7dbd5b75cc
10 changed files with 76 additions and 5 deletions
@@ -0,0 +1,10 @@
// See KT-9134: smart cast is not provided inside lambda call
@Target(AnnotationTarget.EXPRESSION)
annotation class My
fun bar(): Int = @My {
var i: Int?
i = 42
<!DEBUG_INFO_SMARTCAST!>i<!>
}()