Allow empty single-line bodies in property accessors
This commit is contained in:
committed by
Nikolay Krasko
parent
2841931ffa
commit
2bb48fc802
@@ -13,3 +13,11 @@ class Hi {
|
||||
|
||||
var badNoType get() = 1
|
||||
}
|
||||
|
||||
class EmptyProperties {
|
||||
var newline: String
|
||||
get() {
|
||||
return ""
|
||||
}
|
||||
set(value) {}
|
||||
}
|
||||
|
||||
@@ -19,3 +19,9 @@ get() = 1
|
||||
|
||||
var badNoType get() = 1
|
||||
}
|
||||
|
||||
class EmptyProperties {
|
||||
var newline: String
|
||||
get() { return "" }
|
||||
set(value) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user