Minor. Reformat
This commit is contained in:
+5
-4
@@ -50,8 +50,7 @@ class InlinePlatformCompatibilityChecker(val jvmTarget: JvmTarget) : CallChecker
|
|||||||
// prop - resolved call with property descriptor and we should report error
|
// prop - resolved call with property descriptor and we should report error
|
||||||
// prop = 1 - resolved call with setter for whole expression and property descriptor for left part,
|
// prop = 1 - resolved call with setter for whole expression and property descriptor for left part,
|
||||||
// so we couldn't distinguish is this expression for setter or for getter and will report wrong diagnostic
|
// so we couldn't distinguish is this expression for setter or for getter and will report wrong diagnostic
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -61,11 +60,13 @@ class InlinePlatformCompatibilityChecker(val jvmTarget: JvmTarget) : CallChecker
|
|||||||
|
|
||||||
val compilingBytecodeVersion = jvmTarget.bytecodeVersion
|
val compilingBytecodeVersion = jvmTarget.bytecodeVersion
|
||||||
if (compilingBytecodeVersion < inliningBytecodeVersion) {
|
if (compilingBytecodeVersion < inliningBytecodeVersion) {
|
||||||
context.trace.report(ErrorsJvm.INLINE_FROM_HIGHER_PLATFORM.on(
|
context.trace.report(
|
||||||
|
ErrorsJvm.INLINE_FROM_HIGHER_PLATFORM.on(
|
||||||
reportOn,
|
reportOn,
|
||||||
JvmTarget.getDescription(inliningBytecodeVersion),
|
JvmTarget.getDescription(inliningBytecodeVersion),
|
||||||
JvmTarget.getDescription(compilingBytecodeVersion)
|
JvmTarget.getDescription(compilingBytecodeVersion)
|
||||||
))
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user