[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
@@ -70,6 +70,10 @@ typealias AList = ArrayList<I>
|
||||
@Marker
|
||||
typealias YourList = ArrayList<String>
|
||||
|
||||
fun my2(my: <!OPT_IN_USAGE_ERROR!>MyList<!>) {}
|
||||
|
||||
fun my3(my: <!OPT_IN_USAGE_ERROR!>YourList<!>) {}
|
||||
|
||||
fun main() {
|
||||
val x = <!OPT_IN_USAGE_ERROR!>listOf<!>(A(), B())
|
||||
val y = <!OPT_IN_USAGE_ERROR!>MyList<!>()
|
||||
|
||||
Reference in New Issue
Block a user