[Test] Add test for two override-related diagnostics reported on one line
^KT-55433
This commit is contained in:
committed by
Space Team
parent
591e98a947
commit
46cd5621bd
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
internal interface InternalInterface {
|
||||
val x: Any
|
||||
}
|
||||
|
||||
class PublicClass : InternalInterface {
|
||||
internal val <!VIRTUAL_MEMBER_HIDDEN!>x<!>: Any = 42
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
internal interface InternalInterface {
|
||||
val x: Any
|
||||
}
|
||||
|
||||
class PublicClass : InternalInterface {
|
||||
<!CANNOT_WEAKEN_ACCESS_PRIVILEGE!>internal<!> val <!VIRTUAL_MEMBER_HIDDEN!>x<!>: Any = 42
|
||||
}
|
||||
Reference in New Issue
Block a user