[Test] Add test for two override-related diagnostics reported on one line

^KT-55433
This commit is contained in:
Roman Efremov
2024-01-11 17:45:33 +01:00
committed by Space Team
parent 591e98a947
commit 46cd5621bd
7 changed files with 44 additions and 0 deletions
@@ -0,0 +1,7 @@
internal interface InternalInterface {
val x: Any
}
class PublicClass : InternalInterface {
internal val <!VIRTUAL_MEMBER_HIDDEN!>x<!>: Any = 42
}
@@ -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
}