J2K: get/set-methods converted to properties (but lot of TODOs left)
This commit is contained in:
+6
-5
@@ -2,18 +2,19 @@ internal class Library {
|
||||
fun call() {
|
||||
}
|
||||
|
||||
fun getString(): String {
|
||||
return ""
|
||||
}
|
||||
val string: String
|
||||
get() {
|
||||
return ""
|
||||
}
|
||||
}
|
||||
|
||||
internal class User {
|
||||
fun main() {
|
||||
val lib = Library()
|
||||
lib.call()
|
||||
lib.getString().isEmpty()
|
||||
lib.string.isEmpty()
|
||||
|
||||
Library().call()
|
||||
Library().getString().isEmpty()
|
||||
Library().string.isEmpty()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user