[FIR] Cast error on the element name instead of the whole body
This commit is contained in:
committed by
Mikhail Glukhikh
parent
4c639a840d
commit
8960829c01
+2
-2
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user