[K2] Disappeared OPT_IN_USAGE_ERROR for typealias
^KT-62451
This commit is contained in:
committed by
Space Team
parent
54285736d0
commit
6d446abe12
+3
-3
@@ -69,9 +69,9 @@ typealias YourList = ArrayList<String>
|
||||
|
||||
fun main() {
|
||||
val x = <!OPT_IN_USAGE_ERROR!>listOf<!>(A(), B())
|
||||
val y = MyList()
|
||||
val z = YourList()
|
||||
YourList().add("")
|
||||
val y = <!OPT_IN_USAGE_ERROR!>MyList<!>()
|
||||
val z = <!OPT_IN_USAGE_ERROR!>YourList<!>()
|
||||
<!OPT_IN_USAGE_ERROR!>YourList<!>().add("")
|
||||
}
|
||||
|
||||
@Marker
|
||||
|
||||
+3
-3
@@ -69,9 +69,9 @@ typealias YourList = ArrayList<String>
|
||||
|
||||
fun main() {
|
||||
val x = <!OPT_IN_USAGE_ERROR!>listOf<!>(A(), B())
|
||||
val y = MyList()
|
||||
val z = YourList()
|
||||
YourList().add("")
|
||||
val y = <!OPT_IN_USAGE_ERROR!>MyList<!>()
|
||||
val z = <!OPT_IN_USAGE_ERROR!>YourList<!>()
|
||||
<!OPT_IN_USAGE_ERROR!>YourList<!>().add("")
|
||||
}
|
||||
|
||||
@Marker
|
||||
|
||||
Reference in New Issue
Block a user