9a267176f5
Also, this change adds SinceKotlin and Java.Deprecated to this phase It fixes some problems with API_NOT_AVAILABLE, so now it is closer to K1 ^KT-57648 Fixed ^KT-55723 Fixed
17 lines
256 B
Kotlin
Vendored
17 lines
256 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
// FILE: A.kt
|
|
class A(@Deprecated("") val s: String) {
|
|
|
|
constructor(i: Int) : this(i.toString()) {
|
|
|
|
}
|
|
}
|
|
|
|
// FILE: use.kt
|
|
fun use() {
|
|
A("").<!DEPRECATION!>s<!>
|
|
A(42).<!DEPRECATION!>s<!>
|
|
}
|