K2: fix an exception during function resolve #KT-59649 Fixed

This commit is contained in:
Mikhail Glukhikh
2023-07-05 11:51:44 +02:00
committed by Space Team
parent d557bcaba4
commit 6bed02fed3
8 changed files with 45 additions and 1 deletions
@@ -0,0 +1,9 @@
FILE: propertyGetterWithoutType.kt
public final val prop: <ERROR TYPE REF: empty body>
public get(): <ERROR TYPE REF: empty body> {
local final fun smth(s: R|kotlin/String|): R|kotlin/Int| {
^smth Int(1)
}
^ R|<local>/smth|(String(awd))
}
@@ -0,0 +1,6 @@
// ISSUE: KT-59649
val prop
get() {
fun smth(s: String) = 1
return smth("awd")
}