Fixing issues after code review

This commit is contained in:
Valentin Kipyatkov
2015-05-13 20:47:53 +03:00
parent 17f0ac9ba7
commit 04bee4dd7d
25 changed files with 184 additions and 40 deletions
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
class C(<caret>val p: Int) {
public fun foo(){}
}
@@ -0,0 +1 @@
<caret>interface I
@@ -0,0 +1 @@
<caret>private interface I
@@ -1 +0,0 @@
<caret>trait I
@@ -1 +0,0 @@
<caret>private trait I
@@ -0,0 +1,8 @@
// IS_APPLICABLE: false
interface I {
internal fun foo()
}
abstract class C : I {
<caret>override fun foo() {}
}
@@ -0,0 +1,8 @@
// IS_APPLICABLE: false
interface I {
public fun foo()
}
abstract class C : I {
<caret>public override fun foo() {}
}
@@ -0,0 +1,7 @@
interface I {
protected fun foo()
}
abstract class C : I {
<caret>public override fun foo() {}
}
@@ -0,0 +1,7 @@
interface I {
protected fun foo()
}
abstract class C : I {
<caret>protected override fun foo() {}
}
@@ -0,0 +1,7 @@
interface I {
protected fun foo()
}
abstract class C : I {
<caret>protected override fun foo() {}
}
@@ -0,0 +1,7 @@
interface I {
protected fun foo()
}
abstract class C : I {
<caret>public override fun foo() {}
}
@@ -1,8 +0,0 @@
// IS_APPLICABLE: false
// ERROR: Cannot weaken access privilege 'public' for 'foo' in 'T'
trait T {
public fun foo()
}
abstract class C : T {
<caret>protected override fun foo() {}
}