[FIR] Fix mapped constructor hiding logic
Partially reverts 24367e0ad8
Constructors have their own list of hidden/visible.
We now require the constructor to be in VISIBLE_CONSTRUCTOR_SIGNATURES,
everything else is hidden.
This makes it unnecessary to check HIDDEN_CONSTRUCTOR_SIGNATURES
#KT-65821 Fixed
This commit is contained in:
committed by
Space Team
parent
84f0f6e099
commit
81e0abeb8f
@@ -0,0 +1,18 @@
|
||||
// FIR_IDENTICAL
|
||||
// FULL_JDK
|
||||
|
||||
class A : Throwable {
|
||||
constructor(message: String?, cause: Throwable?) : super(message, cause)
|
||||
constructor(message: String?) : super(message)
|
||||
constructor(cause: Throwable?) : super(cause)
|
||||
constructor() : super()
|
||||
constructor(message: String?, cause: Throwable?, enableSuppression: Boolean, writableStackTrace: Boolean)
|
||||
: super(message, cause, enableSuppression, writableStackTrace)
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
Throwable("")
|
||||
Throwable(Exception())
|
||||
Throwable()
|
||||
Throwable("", Exception())
|
||||
}
|
||||
Reference in New Issue
Block a user