[K2] Disappeared OPT_IN_MARKER_CAN_ONLY_BE_USED_AS_ANNOTATION_OR_ARGUMENT_IN_OPT_IN (1)
Added error propagation for the type-aliased type. ^KT-59998
This commit is contained in:
committed by
Space Team
parent
5c7b586dbb
commit
445ed7abc9
+4
@@ -78,6 +78,10 @@ fun main() {
|
||||
<!OPT_IN_USAGE_FUTURE_ERROR!>YourList<!>().add("")
|
||||
}
|
||||
|
||||
fun my2(my: <!OPT_IN_USAGE_FUTURE_ERROR!>MyList<!>) {}
|
||||
|
||||
fun my3(my: <!OPT_IN_USAGE_ERROR!>YourList<!>) {}
|
||||
|
||||
@Marker
|
||||
class C {
|
||||
operator fun getValue(x: Any?, y: Any?): String = ""
|
||||
|
||||
Reference in New Issue
Block a user