Experimental fixes: introduce "Add @UseExperimental" #KT-22760 Fixed

This commit is contained in:
Mikhail Glukhikh
2018-05-08 14:59:01 +03:00
parent f404d6c97a
commit 51fba03253
10 changed files with 121 additions and 10 deletions
@@ -2,6 +2,7 @@
// COMPILER_ARGUMENTS: -Xuse-experimental=kotlin.Experimental
// WITH_RUNTIME
// ACTION: Add '@MyExperimentalAPI' annotation to containing class 'Bar'
// ACTION: Add '@UseExperimental(MyExperimentalAPI::class)' annotation to 'bar'
// 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)'