KT-4529 Lambdas are analyzed improperly in an infix call nested inside a println

#KT-4529 Fixed
This commit is contained in:
Svetlana Isakova
2014-02-11 16:15:28 +04:00
parent 2ebe8fd6a2
commit 70374ea9be
5 changed files with 47 additions and 5 deletions
@@ -0,0 +1,14 @@
package o
class A {
fun foo(b: B) = b
}
class B {
fun bar() {}
}
fun test(a: A, b: B?) {
a foo b!!
<!DEBUG_INFO_AUTOCAST!>b<!>.bar()
}