[FIR] Analyze bodies of non delegated property accessors without expected type

^KT-53349 Fixed
This commit is contained in:
Dmitriy Novozhilov
2022-09-20 11:28:34 +03:00
parent c5fd248e69
commit a6c7d4c0c6
7 changed files with 49 additions and 1 deletions
@@ -0,0 +1,14 @@
FILE: getterWithEarlyReturn.kt
public final class SomeClass : R|kotlin/Any| {
public constructor(): R|SomeClass| {
super<R|kotlin/Any|>()
}
}
public final val R|SomeClass|.lore: R|kotlin/collections/List<kotlin/String>|
public get(): R|kotlin/collections/List<kotlin/String>| {
this@R|/lore|.R|kotlin/apply|<R|SomeClass|>(<L> = apply@fun R|SomeClass|.<anonymous>(): R|kotlin/Unit| <inline=Inline, kind=EXACTLY_ONCE> {
^ R|kotlin/collections/emptyList|<R|kotlin/String|>()
}
)
}
@@ -0,0 +1,11 @@
// WITH_STDLIB
// ISSUE: KT-53349
class SomeClass
val SomeClass.lore: List<String>
get() {
apply {
return emptyList()
}
}