Inherited function type resolution is flaky #2187
Labels
bug
feedback: Google
An issue/PR submitted by colleagues at Google, most likely related to the Android API reference docs
(this debugging regards
kotlinSubclassFunction
as inherited fromKotlinSubclass
byJavaLeafClass : KotlinSubclass
)Sometimes, the type of
kotlinSubclassFunction
inJavaLeafClass : KotlinSubclass
does not resolve and becomesnull
. This has been observed (so far exclusively, but I have suspicions some other cases are related) in java types inheriting Kotlin class functions that don't have explicit return types (i.e. usefun foo() = "string"
).Expected behaviour
The return type of
kotlinSubclassFunction
should beString
, notnull
, as it is for kotlin types inheriting such things.Our source is here:
https://cs.android.com/androidx/platform/tools/dokka-devsite-plugin/+/master:testData/inheritance/source/
Dokka version 1.6.0-dev-122
As this is flaky and seems likely to be a concurrency issue, maybe this is related to #2052?
The text was updated successfully, but these errors were encountered: