Create from Usage: Make extension functions/properties 'private' by default

#KT-11799 Fixed
This commit is contained in:
Alexey Sedunov
2016-08-17 14:19:04 +03:00
parent 92b0c852dd
commit 99ba340236
35 changed files with 37 additions and 35 deletions
@@ -9,6 +9,6 @@ fun A.test() {
bar(foo(n))
}
fun A.foo(n: Int): Boolean {
private fun A.foo(n: Int): Boolean {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
@@ -12,6 +12,6 @@ fun test() {
}
}
fun A.foo(n: Int): Boolean {
private fun A.foo(n: Int): Boolean {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
@@ -2,7 +2,7 @@
// ERROR: Property must be initialized
class A(val n: Int)
val A.foo: Boolean<caret>
private val A.foo: Boolean
class B {
val A.test: Boolean get() = foo
@@ -2,7 +2,7 @@
// ERROR: Property must be initialized
class A(val n: Int)
var A.foo: Boolean<caret>
private var A.foo: Boolean
class B {
var A.test: Boolean