81e0abeb8f
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
19 lines
552 B
Kotlin
Vendored
19 lines
552 B
Kotlin
Vendored
// 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())
|
|
}
|