diff options
Diffstat (limited to 'test/playground.kt')
-rw-r--r-- | test/playground.kt | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/test/playground.kt b/test/playground.kt index 80992fbd..5bc5207a 100644 --- a/test/playground.kt +++ b/test/playground.kt @@ -6,10 +6,10 @@ fun topLevelFunction() { val topLevelConstantValue = "Hello" -val topLevelValue : String +val topLevelValue: String get() = "Bye bye" -var topLevelVariable : String +var topLevelVariable: String get() = "Modify me!" set(value) { } @@ -23,6 +23,18 @@ class Class { } +/** + * This is a class with constructor and space after doc + */ + +class ClassWithConstructor(val name: String) + +/** + * This is data class with constructor and comment after doc + */ +// irrelevant comment +data class DataClass(val name: String, val age: Int) {} + object Object { fun objectFunction() { } |