It looks like the latest dokka (0.9.11) can’t handle some code meant for the latest kotlin (1.1-M04). Dokka crashes on a line of code that is using the new coroutines. Is it supposed to work with 1.1?
Documentation is essential. Shouldn’t this be part of the core kotlin distribution, just like javadoc is part of the JDK?
Rob
ERROR: Exception while analyzing expression at (34,20) in /Users/rob/[…]/src/main/kotlin/[…]l/Loggers.kt:
generate {
for (i in 1…10) {
yield(i)
}
}
java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
at java.util.ArrayList.rangeCheck(ArrayList.java:653)
at java.util.ArrayList.get(ArrayList.java:429)
at org.jetbrains.kotlin.types.TypeSubstitutor.substituteTypeArguments(TypeSubstitutor.java:246)
at org.jetbrains.kotlin.types.TypeSubstitutor.substituteCompoundType(TypeSubstitutor.java:232)
at org.jetbrains.kotlin.types.TypeSubstitutor.unsafeSubstitute(TypeSubstitutor.java:206)