mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
26 lines
481 B
Kotlin
26 lines
481 B
Kotlin
/** Kdoc with no owner */
|
|
package foo.bar
|
|
|
|
/**
|
|
* A group of *members*.
|
|
*
|
|
* This class has no useful logic; it's just a documentation example.
|
|
*
|
|
* @property name the name of this group.
|
|
* @constructor Creates an empty group.
|
|
*/
|
|
class Group(val name: String) {
|
|
/**
|
|
* Adds a [member] to this group.
|
|
* @return the new size of the group.
|
|
*/
|
|
fun add(member: Int): Int {
|
|
// A line comment
|
|
return 42
|
|
}
|
|
|
|
/*
|
|
A block comment
|
|
*/
|
|
}
|