67 lines
1.0 KiB
Kotlin
Vendored
67 lines
1.0 KiB
Kotlin
Vendored
|
|
/** Test. */
|
|
class Test {
|
|
/** method(). */
|
|
fun method() {}
|
|
|
|
/** method(int). */
|
|
fun method(a: Int) {}
|
|
|
|
/** method(String). */
|
|
fun method(a: String) {}
|
|
|
|
/** prop. */
|
|
const val prop: String = ""
|
|
|
|
/** prop2. */
|
|
@Anno
|
|
val prop2: String = ""
|
|
|
|
/** prop3. */
|
|
var prop3: String
|
|
/** get. */ get() = ""
|
|
/** set. */ set(v) {}
|
|
}
|
|
|
|
/**
|
|
* Test2
|
|
* Multiline
|
|
* documentation.
|
|
*/
|
|
class Test2(val a: String)
|
|
|
|
class Test3 /** constructor. */ protected constructor(val a: String)
|
|
|
|
/** Obj. */
|
|
object Obj
|
|
|
|
@Target(AnnotationTarget.PROPERTY)
|
|
annotation class Anno
|
|
|
|
/* simple comment. */
|
|
class Test4 {
|
|
// method simple comment
|
|
fun method() {}
|
|
}
|
|
|
|
enum class EnumError {
|
|
One {
|
|
override fun doIt() = ""
|
|
|
|
class OneOne {
|
|
/** Documentation for 'test'. */
|
|
fun test() {}
|
|
}
|
|
},
|
|
Two {
|
|
/** Documentation for 'doIt'. */
|
|
override fun doIt() = ""
|
|
};
|
|
|
|
abstract fun doIt(): String
|
|
}
|
|
|
|
/**
|
|
* `/* Failure */`
|
|
*/
|
|
interface TestComponent |