Attach preceding line comments to property accessors (KT-25417)

#KT-25417 Fixed
This commit is contained in:
Nikolay Krasko
2018-07-30 14:48:41 +03:00
parent e3462a2999
commit 449069b1b7
5 changed files with 74 additions and 5 deletions
+13 -1
View File
@@ -37,4 +37,16 @@ class EmptyProperties {
*
*/
set(value) {}
}
}
var prop: Int // Int
get() = 1 // this is getter
set(value) {} // this is setter
val prop2: Int get = 1 // prop2
var prop3: Int // Int
// this comment is for getter
get() = 1
// this comment is for setter
set(value) {}
+13 -1
View File
@@ -40,4 +40,16 @@ class EmptyProperties {
*
*/
set(value) {}
}
}
var prop: Int // Int
get() = 1 // this is getter
set(value) {} // this is setter
val prop2: Int get = 1 // prop2
var prop3: Int // Int
// this comment is for getter
get() = 1
// this comment is for setter
set(value) {}