FIR: add EXPERIMENTAL_API_USAGE reporting
This commit is contained in:
Vendored
+2
-2
@@ -1,5 +1,5 @@
|
||||
fun test_1() {
|
||||
val list = buildList {
|
||||
val list = <!EXPERIMENTAL_API_USAGE_ERROR!>buildList<!> {
|
||||
add("")
|
||||
}
|
||||
takeList(list)
|
||||
@@ -12,7 +12,7 @@ fun test_2() {
|
||||
takeList(list)
|
||||
}
|
||||
|
||||
fun <E> myBuildList(@BuilderInference builderAction: MutableList<E>.() -> Unit): List<E> {
|
||||
fun <E> myBuildList(@<!EXPERIMENTAL_API_USAGE_ERROR!>BuilderInference<!> builderAction: MutableList<E>.() -> Unit): List<E> {
|
||||
return ArrayList<E>().apply(builderAction)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user