Allow empty single-line bodies in property accessors

This commit is contained in:
Nikolay Krasko
2016-12-12 20:24:15 +03:00
committed by Nikolay Krasko
parent 2841931ffa
commit 2bb48fc802
18 changed files with 64 additions and 40 deletions
+8
View File
@@ -13,3 +13,11 @@ class Hi {
var badNoType get() = 1
}
class EmptyProperties {
var newline: String
get() {
return ""
}
set(value) {}
}
+6
View File
@@ -19,3 +19,9 @@ get() = 1
var badNoType get() = 1
}
class EmptyProperties {
var newline: String
get() { return "" }
set(value) {}
}