Attach preceding line comments to property accessors (KT-25417)
#KT-25417 Fixed
This commit is contained in:
+13
-1
@@ -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
@@ -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) {}
|
||||
Reference in New Issue
Block a user