You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a class exists with functions where an expression body is used and also the return type is omitted, Dokka sometimes is unable to find the return type.
It seems that the return type can't be resolved as soon as generic methods of the kotlin-stdlib are used.
For example for every function class starting with the name broken the return type can't be resolved:
packagecom.github.porokoro.exampledata classTest(varvalue:String) {
funbrokenApply(v:String) =apply { value = v }
funbrokenRun(v:String) =run {
value = v
this
}
funbrokenLet(v:String) =let {
it.value = v
it
}
funbrokenGenerics() =listOf("a", "b", "c")
funworking(v:String) = doSomething()
fundoSomething(): String="Hello"
}
This results in warnings about unresolved types during generation and creates <ERROR CLASS> entries in the documentation. I attached a screenshot of the resulting documentation:
The text was updated successfully, but these errors were encountered:
If a class exists with functions where an expression body is used and also the return type is omitted, Dokka sometimes is unable to find the return type.
It seems that the return type can't be resolved as soon as generic methods of the kotlin-stdlib are used.
For example for every function class starting with the name
broken
the return type can't be resolved:This results in warnings about unresolved types during generation and creates
<ERROR CLASS>
entries in the documentation. I attached a screenshot of the resulting documentation:The text was updated successfully, but these errors were encountered: