[FIR] KT-54410: Report API_NOT_AVAILABLE for classifiers
Callable symbols with SinceKotlin are filtered out by a resolution stage, but in K1 classifiers and property accessors report API_NOT_AVAILABLE. K2 filters out properties with unavailable accessors, but does nothing for classifiers. This change fixes it. ^KT-54410 Fixed
This commit is contained in:
committed by
Space Team
parent
fd52cc4224
commit
9be819087a
@@ -0,0 +1,8 @@
|
||||
// API_VERSION: 1.7
|
||||
|
||||
import kotlin.io.path.<!API_NOT_AVAILABLE!>OnErrorResult<!>
|
||||
|
||||
fun fun0 (): Unit {
|
||||
val something1 = <!NO_COMPANION_OBJECT!>OnErrorResult<!>.<!OPT_IN_USAGE_ERROR!>TERMINATE<!>
|
||||
val something2 = kotlin.io.path.<!API_NOT_AVAILABLE, OPT_IN_USAGE_ERROR!>OnErrorResult<!>.<!OPT_IN_USAGE_ERROR!>TERMINATE<!>
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// API_VERSION: 1.7
|
||||
|
||||
import kotlin.io.path.<!API_NOT_AVAILABLE!>OnErrorResult<!>
|
||||
|
||||
fun fun0 (): Unit {
|
||||
val something1 = <!API_NOT_AVAILABLE, OPT_IN_USAGE_ERROR!>OnErrorResult<!>.<!OPT_IN_USAGE_ERROR!>TERMINATE<!>
|
||||
val something2 = kotlin.io.path.<!API_NOT_AVAILABLE, OPT_IN_USAGE_ERROR!>OnErrorResult<!>.<!OPT_IN_USAGE_ERROR!>TERMINATE<!>
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package
|
||||
|
||||
public fun fun0(): kotlin.Unit
|
||||
Reference in New Issue
Block a user