K1: report errors related to SubClassOptInRequired annotation

Related to KT-41886
This commit is contained in:
Mikhail Glukhikh
2022-07-12 14:55:35 +02:00
committed by teamcity
parent 84291181af
commit c67c5cad27
11 changed files with 261 additions and 36 deletions
@@ -8,7 +8,12 @@ package org.jetbrains.kotlin.resolve.checkers
import org.jetbrains.kotlin.descriptors.annotations.KotlinTarget
import org.jetbrains.kotlin.name.FqName
data class OptInDescription(val annotationFqName: FqName, val severity: Severity, val message: String?) {
data class OptInDescription(
val annotationFqName: FqName,
val severity: Severity,
val message: String?,
val subclassesOnly: Boolean,
) {
enum class Severity { WARNING, ERROR, FUTURE_ERROR }
companion object {