Allow empty single-line bodies in property accessors
This commit is contained in:
committed by
Nikolay Krasko
parent
2841931ffa
commit
2bb48fc802
+1
-2
@@ -5,6 +5,5 @@ interface A {
|
||||
class B : A {
|
||||
override var Int.foo: Double
|
||||
get() = <selection><caret>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
set(value) {
|
||||
}
|
||||
set(value) {}
|
||||
}
|
||||
|
||||
@@ -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) {}
|
||||
}
|
||||
|
||||
+1
-2
@@ -13,5 +13,4 @@ private var A.foo: Boolean
|
||||
get() {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
set() {
|
||||
}
|
||||
set() {}
|
||||
|
||||
+1
-2
@@ -11,5 +11,4 @@ private var Int.foo: A<String>
|
||||
get() {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
set() {
|
||||
}
|
||||
set() {}
|
||||
|
||||
+1
-2
@@ -11,8 +11,7 @@ private abstract class Base {
|
||||
private class BaseImpl : Base() {
|
||||
override var x: Int
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
set(value) {
|
||||
}
|
||||
set(value) {}
|
||||
|
||||
override fun toInt(arg: String): Int {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
|
||||
@@ -10,7 +10,6 @@ class Container {
|
||||
class BaseImpl : Base {
|
||||
override var z: Double
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
set(value) {
|
||||
}
|
||||
set(value) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user