From 046265ea04b645b4f8ff835aa6c3ff9879501aed Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Sat, 12 Jul 2014 01:12:42 +0400 Subject: Add Owner references, cleanup --- test/playground.kt | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'test') 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()) @@ -52,7 +52,10 @@ object Object { class OuterClass { - class NestedClass { + /** + * $T: type of the item + */ + class NestedClass { fun nestedClassFunction() { } } -- cgit