[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:
Kirill Rakhman
2024-02-15 11:12:45 +01:00
committed by Space Team
parent 84f0f6e099
commit 81e0abeb8f
8 changed files with 56 additions and 16 deletions
@@ -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())
}