[FIR] Cast error on the element name instead of the whole body

This commit is contained in:
rapturemain
2020-04-18 00:10:59 +03:00
committed by Mikhail Glukhikh
parent 4c639a840d
commit 8960829c01
35 changed files with 87 additions and 130 deletions
@@ -6,14 +6,14 @@ package p
private fun foo(a: Int) = run {
object {
inner class A
<!EXPOSED_FUNCTION_RETURN_TYPE!>fun foo() = A()<!>
fun <!EXPOSED_FUNCTION_RETURN_TYPE!>foo<!>() = A()
}.foo()
}
private fun foo() = run {
object {
inner class A
<!EXPOSED_FUNCTION_RETURN_TYPE!>fun foo() = A()<!>
fun <!EXPOSED_FUNCTION_RETURN_TYPE!>foo<!>() = A()
}.foo()
}