FIR OptIn: temporarily replace error USAGE with warning

This commit is required for FP test to pass,
because FP test does not see module -Xopt-in=... flags.
This commit is contained in:
Mikhail Glukhikh
2021-06-10 16:13:09 +03:00
parent 82f268d611
commit 543ce06d85
2 changed files with 2 additions and 2 deletions
@@ -249,7 +249,7 @@ object DIAGNOSTICS_LIST : DiagnosticList("FirErrors") {
parameter<FqName>("optInMarkerFqName")
parameter<String>("message")
}
val EXPERIMENTAL_API_USAGE_ERROR by error<PsiElement>(PositioningStrategy.REFERENCE_BY_QUALIFIED) {
val EXPERIMENTAL_API_USAGE_ERROR by warning<PsiElement>(PositioningStrategy.REFERENCE_BY_QUALIFIED) {
parameter<FqName>("optInMarkerFqName")
parameter<String>("message")
}
@@ -214,7 +214,7 @@ object FirErrors {
// OptIn-related
val EXPERIMENTAL_API_USAGE by warning2<PsiElement, FqName, String>(SourceElementPositioningStrategies.REFERENCE_BY_QUALIFIED)
val EXPERIMENTAL_API_USAGE_ERROR by error2<PsiElement, FqName, String>(SourceElementPositioningStrategies.REFERENCE_BY_QUALIFIED)
val EXPERIMENTAL_API_USAGE_ERROR by warning2<PsiElement, FqName, String>(SourceElementPositioningStrategies.REFERENCE_BY_QUALIFIED)
val EXPERIMENTAL_OVERRIDE by warning2<PsiElement, FqName, String>()
val EXPERIMENTAL_OVERRIDE_ERROR by error2<PsiElement, FqName, String>()
val EXPERIMENTAL_IS_NOT_ENABLED by warning0<KtAnnotationEntry>(SourceElementPositioningStrategies.REFERENCED_NAME_BY_QUALIFIED)