[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
@@ -18,20 +18,20 @@ class C : B(), A {
override var y
get() = super.y
set(value) {
value checkType { <!INAPPLICABLE_CANDIDATE!>_<!><String>() }
value checkType { _<String>() }
}
override var z
get() = ""
set(value) {
value checkType { <!INAPPLICABLE_CANDIDATE!>_<!><String>() }
value checkType { _<String>() }
}
}
fun foo(c: C) {
c.x checkType { <!UNRESOLVED_REFERENCE!>_<!><Int>() }
c.y checkType { <!UNRESOLVED_REFERENCE!>_<!><String>() }
c.z checkType { <!UNRESOLVED_REFERENCE!>_<!><String>() }
c.x checkType { _<Int>() }
c.y checkType { _<String>() }
c.z checkType { _<String>() }
c.y = ""
c.y = 1