Rename UseExperimental->OptIn, Experimental->RequiresOptIn in compiler tests
This commit is contained in:
+4
-4
@@ -1,9 +1,9 @@
|
||||
// !USE_EXPERIMENTAL: kotlin.Experimental
|
||||
// !USE_EXPERIMENTAL: kotlin.RequiresOptIn
|
||||
// FILE: api.kt
|
||||
|
||||
package api
|
||||
|
||||
@Experimental(Experimental.Level.WARNING)
|
||||
@RequiresOptIn(RequiresOptIn.Level.WARNING)
|
||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
|
||||
annotation class ExperimentalAPI
|
||||
|
||||
@@ -36,12 +36,12 @@ package usage2
|
||||
|
||||
import api.*
|
||||
|
||||
@UseExperimental(ExperimentalAPI::class)
|
||||
@OptIn(ExperimentalAPI::class)
|
||||
fun use1() {
|
||||
C.D.E.F()
|
||||
}
|
||||
|
||||
@UseExperimental(ExperimentalAPI::class)
|
||||
@OptIn(ExperimentalAPI::class)
|
||||
fun use2(f: C.D.E.F) = f.hashCode()
|
||||
|
||||
// FILE: usage-none.kt
|
||||
|
||||
Reference in New Issue
Block a user