[FIR] Analyze bodies of non delegated property accessors without expected type
^KT-53349 Fixed
This commit is contained in:
+14
@@ -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|>()
|
||||
}
|
||||
)
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// WITH_STDLIB
|
||||
// ISSUE: KT-53349
|
||||
|
||||
class SomeClass
|
||||
|
||||
val SomeClass.lore: List<String>
|
||||
get() {
|
||||
apply {
|
||||
return emptyList()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user