[FIR] Implement isHiddenEverywhereBesideSuperCalls logic for constructors
#KT-61448 Fixed
This commit is contained in:
committed by
Space Team
parent
2f49272c42
commit
24367e0ad8
+6
-2
@@ -1,6 +1,10 @@
|
||||
// !JDK_KIND: MODIFIED_MOCK_JDK
|
||||
abstract class A : Throwable(1.0) {}
|
||||
// K2 difference is in accordance with KT-65438 where we defined that members in the "grey list"
|
||||
// (i.e. neither explicitly visible nor hidden) are hidden in the declaring class and since constructors are not inheritable,
|
||||
// they're always hidden.
|
||||
|
||||
abstract class A : <!NONE_APPLICABLE!>Throwable<!>(1.0) {}
|
||||
|
||||
fun foo() {
|
||||
Throwable(1.5)
|
||||
<!NONE_APPLICABLE!>Throwable<!>(1.5)
|
||||
}
|
||||
|
||||
+4
@@ -1,4 +1,8 @@
|
||||
// !JDK_KIND: MODIFIED_MOCK_JDK
|
||||
// K2 difference is in accordance with KT-65438 where we defined that members in the "grey list"
|
||||
// (i.e. neither explicitly visible nor hidden) are hidden in the declaring class and since constructors are not inheritable,
|
||||
// they're always hidden.
|
||||
|
||||
abstract class A : <!DEPRECATION!>Throwable<!>(1.0) {}
|
||||
|
||||
fun foo() {
|
||||
|
||||
Reference in New Issue
Block a user