[FIR] Fix missing receiver type if anonymous function without label

This commit is contained in:
simon.ogorodnik
2020-04-07 23:43:42 +03:00
parent d2fd377605
commit f573719cc1
143 changed files with 249 additions and 766 deletions
@@ -13,9 +13,9 @@ class Inv2<T : Inv2<in T>>(val x: T)
fun main(a: A<*>, j: JavaClass<*>, i2: Inv2<*>) {
// Probably it's too restrictive to suppose star projection type here as Any?,
// but looks like we can refine it later
a.foo() checkType { <!UNRESOLVED_REFERENCE!>_<!><Any?>() }
j.foo() checkType { <!UNRESOLVED_REFERENCE!>_<!><Any?>() }
i2.x checkType { <!UNRESOLVED_REFERENCE!>_<!><Any?>() }
a.foo() checkType { <!INAPPLICABLE_CANDIDATE!>_<!><Any?>() }
j.foo() checkType { <!INAPPLICABLE_CANDIDATE!>_<!><Any?>() }
i2.x checkType { <!INAPPLICABLE_CANDIDATE!>_<!><Any?>() }
j.<!INAPPLICABLE_CANDIDATE!>bar<!>(1, 2, Any())
j.bar(null)