kotlin icon indicating copy to clipboard operation
kotlin copied to clipboard

JVM: Show language version in pre-release error

Open scaventz opened this issue 3 years ago • 0 comments

Partially fix KT-16279.

It seems that JVM-backend and JS-backend adopt different approaches of writing metadata, so I think it's better to keep JS-backend untouched, and take care of it later.


This is how JVM backend writes metadata: https://github.com/JetBrains/kotlin/blob/fc6c2c9631cc152f5ec22cf3285706ece86d043e/compiler/backend/src/org/jetbrains/kotlin/codegen/writeAnnotationUtil.kt#L35

This is how JS-backend writes metadata (not pretty sure) : https://github.com/JetBrains/kotlin/blob/92d200e093c693b3c06e53a39e0b0973b84c7ec5/js/js.translator/src/org/jetbrains/kotlin/js/facade/K2JSTranslator.kt#L220-L226

scaventz avatar Jun 17 '22 10:06 scaventz