Experimental fixes: introduce "add -Xuse-experimental" (KT-22760)

This commit is contained in:
Mikhail Glukhikh
2018-05-08 13:06:27 +03:00
parent 30c62bccb2
commit c77c8d872c
10 changed files with 111 additions and 0 deletions
@@ -3,6 +3,7 @@
// WITH_RUNTIME
// ACTION: Add '@MyExperimentalAPI' annotation to containing class 'Bar'
// ACTION: Add '@UseExperimental(MyExperimentalAPI::class)' annotation to 'bar'
// ACTION: Add '-Xuse-experimental=MyExperimentalAPI' to module light_idea_test_case compiler arguments
// ERROR: This declaration is experimental and its usage must be marked with '@MyExperimentalAPI' or '@UseExperimental(MyExperimentalAPI::class)'
// ERROR: This declaration is experimental and its usage must be marked with '@MyExperimentalAPI' or '@UseExperimental(MyExperimentalAPI::class)'