I'm encountering an assertion error when using Kot...
# compiler
n
I'm encountering an assertion error when using Kotlin
1.4.20-M1-61
in a scenario where I'm trying to link against a KLIB that contains a generated property https://youtrack.jetbrains.com/issue/KT-42443 here's a project to reproduce https://github.com/nhachicha/KonancAssertionIssue
Copy code
konanc Client.kt -g -ea -target macos_x64 -p program -o main -l mylib.klib       
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.util.ReflectionUtil (file:/Users/nabil/Dev/kotlin-native/dist/konan/lib/kotlin-native.jar) to method java.util.ResourceBundle.setParent(java.util.ResourceBundle)
WARNING: Please consider reporting this to the maintainers of com.intellij.util.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
error: compilation failed: Assertion failed

* Source files: Client.kt
* Compiler version info: Konan: 1.4.20-dev / Kotlin: 1.4.20
* Output kind: PROGRAM

exception: java.lang.AssertionError: Assertion failed
 at org.jetbrains.kotlin.backend.konan.llvm.DebugUtilsKt.location(DebugUtils.kt:99)
 at org.jetbrains.kotlin.backend.konan.llvm.DebugUtilsKt.line(DebugUtils.kt:108)
 at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.startLine(IrToBitcode.kt:1910)
 at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.debugFieldDeclaration(IrToBitcode.kt:1936)
 at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitField(IrToBitcode.kt:841)
 at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoid$DefaultImpls.visitField(IrElementVisitorVoid.kt:62)