Do not enter in recursion for implicit invoke on variable with un inferred type

This commit is contained in:
Stanislav Erokhin
2015-12-08 15:11:50 +03:00
parent 1dca49cecc
commit 66a031f7a0
6 changed files with 63 additions and 3 deletions
@@ -0,0 +1,16 @@
fun test() = 3
fun <T> proxy(t: T) = t
class A {
val test = test()
}
class B {
val test = proxy(test())
}
class C {
val bar = <!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!><!UNINITIALIZED_VARIABLE!>test<!>()<!>
val test = <!FUNCTION_EXPECTED!>bar<!>()
}