Do not insert explicit visibility modifier if it's default

This commit is contained in:
Valentin Kipyatkov
2015-09-14 21:41:02 +03:00
parent 8ba7f2c238
commit 1ccbda6af4
22 changed files with 102 additions and 61 deletions
@@ -0,0 +1,3 @@
class C {
protected<caret> fun foo(){}
}
@@ -3,5 +3,5 @@ interface I {
}
abstract class C : I {
<caret>protected override fun foo() {}
<caret>override fun foo() {}
}
@@ -1,3 +0,0 @@
class C {
public<caret> fun foo(){}
}
@@ -0,0 +1,7 @@
interface I {
protected fun foo()
}
abstract class C : I {
<caret>override fun foo() {}
}
@@ -0,0 +1,7 @@
interface I {
protected fun foo()
}
abstract class C : I {
<caret>public override fun foo() {}
}
@@ -1,2 +1,2 @@
// INTENTION_TEXT: Make public
class C <caret>public constructor(val v: Int)
class C <caret>(val v: Int)
@@ -1,3 +1,3 @@
class C {
<caret>public fun foo(){}
<caret>fun foo(){}
}