Prohibit implicit overrides with lesser visibility
A non-abstract super-declaration is allowed to stand as 'an implementation' of a fake override only if its visibility is not less than visibilities of all other super-declarations #KT-2491 Fixed
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ class SimpleSubclass : JavaInterface {
|
||||
// Class extends both Java and Kotlin traits. Checks that there's no DIFFERENT_NAMES_FOR_THE_SAME_PARAMETER_IN_SUPERTYPES warning
|
||||
|
||||
trait KotlinTrait {
|
||||
fun foo(someOtherName: Int) {}
|
||||
public fun foo(someOtherName: Int) {}
|
||||
}
|
||||
|
||||
class BothTraitsSubclass : JavaInterface, KotlinTrait
|
||||
|
||||
Reference in New Issue
Block a user