Depend on passed language version explicitly to compute nullability annotation settings
This commit is contained in:
@@ -359,6 +359,8 @@ enum class LanguageVersion(val major: Int, val minor: Int) : DescriptionAware {
|
||||
fun LanguageVersion.isStableOrReadyForPreview(): Boolean =
|
||||
isStable || this == KOTLIN_1_5
|
||||
|
||||
fun LanguageVersion.toKotlinVersion() = KotlinVersion(major, minor)
|
||||
|
||||
interface LanguageVersionSettings {
|
||||
fun getFeatureSupport(feature: LanguageFeature): LanguageFeature.State
|
||||
|
||||
|
||||
Reference in New Issue
Block a user