FIR: add EXPERIMENTAL_API_USAGE reporting
This commit is contained in:
+4
-4
@@ -21,11 +21,11 @@ annotation class M
|
||||
|
||||
// Usages as types should be errors
|
||||
|
||||
fun f1(e: RequiresOptIn) {}
|
||||
fun f2(u: OptIn?) {}
|
||||
fun f1(e: <!EXPERIMENTAL_CAN_ONLY_BE_USED_AS_ANNOTATION!>RequiresOptIn<!>) {}
|
||||
fun f2(u: <!EXPERIMENTAL_CAN_ONLY_BE_USED_AS_ANNOTATION!>OptIn?<!>) {}
|
||||
|
||||
typealias Experimental0 = RequiresOptIn
|
||||
typealias OptIn0 = OptIn
|
||||
typealias Experimental0 = <!EXPERIMENTAL_CAN_ONLY_BE_USED_AS_ANNOTATION!>RequiresOptIn<!>
|
||||
typealias OptIn0 = <!EXPERIMENTAL_CAN_ONLY_BE_USED_AS_ANNOTATION!>OptIn<!>
|
||||
fun f3(e: Experimental0 /* TODO */) {}
|
||||
fun f4(u: OptIn0 /* TODO */) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user