aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/playground.kt17
1 files changed, 10 insertions, 7 deletions
diff --git a/test/playground.kt b/test/playground.kt
index 38fd4a3f..502d5efd 100644
--- a/test/playground.kt
+++ b/test/playground.kt
@@ -29,15 +29,15 @@ class Class {
* This is a class with constructor and space after doc
*/
-class ClassWithConstructor(val name: String)
+class ClassWithConstructor(/** Doc at parameter */ val name: String)
/**
- * This is data class with constructor and comment after doc
- * $name Person's name
- * $age Person's age
+ * This is data class $Person with constructor and two properties
+ *
+ * $name: Person's name
+ * $age: Person's age
*/
-// irrelevant comment
-data class Person(/** Doc at parameter */ val name: String, val age: Int) {}
+data class Person(val name: String, val age: Int) {}
object Object {
throws(javaClass<IllegalArgumentException>())
@@ -52,7 +52,10 @@ object Object {
class OuterClass {
- class NestedClass {
+ /**
+ * $T: type of the item
+ */
+ class NestedClass<T> {
fun nestedClassFunction() {
}
}