Separate JvmTarget::bytecodeVersion version into major/minor parts
This commit is contained in:
+1
-1
@@ -62,7 +62,7 @@ class InlinePlatformCompatibilityChecker(val jvmTarget: JvmTarget, languageVersi
|
||||
|
||||
val propertyOrFun = DescriptorUtils.getDirectMember(resultingDescriptor)
|
||||
|
||||
val compilingBytecodeVersion = jvmTarget.bytecodeVersion
|
||||
val compilingBytecodeVersion = jvmTarget.majorVersion
|
||||
if (!properError) {
|
||||
val inliningBytecodeVersion = getBytecodeVersionIfDeserializedDescriptor(propertyOrFun, false)
|
||||
if (inliningBytecodeVersion != null && compilingBytecodeVersion < inliningBytecodeVersion) {
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@ class LocalFunInlineChecker : DeclarationChecker {
|
||||
}
|
||||
|
||||
class JvmStaticChecker(jvmTarget: JvmTarget, languageVersionSettings: LanguageVersionSettings) : DeclarationChecker {
|
||||
private val isLessJVM18 = jvmTarget.bytecodeVersion < JvmTarget.JVM_1_8.bytecodeVersion
|
||||
private val isLessJVM18 = jvmTarget.majorVersion < JvmTarget.JVM_1_8.majorVersion
|
||||
|
||||
private val supportJvmStaticInInterface = languageVersionSettings.supportsFeature(LanguageFeature.JvmStaticInInterface)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user