Files
kotlin-fork/idea/testData/inspections/redundantVisibilityModifier/redundantVisibilityModifier.kt
T
2016-05-23 13:08:57 +03:00

33 lines
487 B
Kotlin
Vendored

public class C {
public val foo: Int = 0
public fun bar() {}
}
open class D {
protected open fun willRemainProtected() {
}
protected open fun willBecomePublic() {
}
}
class E : D() {
protected override fun willRemainProtected() {
}
public override fun willBecomePublic() {
}
}
enum class F private constructor(val x: Int) {
FIRST(42)
}
sealed class G constructor(val y: Int) {
private constructor(): this(42)
object H : G()
}