user
05/26/2016, 9:09 AMbroken
the return type can't be resolved:
kotlin
package com.github.porokoro.example
data class Test(var value: String) {
fun brokenApply(v: String) = apply { value = v }
```fun brokenRun(v: String) = run {
value = v
this
}
fun brokenLet(v: String) = let {
it.value = v
it
}
fun brokenGenerics() = listOf("a", "b", "c")
fun working(v: String) = doSomething()
fun doSomething(): 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:
Documentation error types▾