When attempting to compile a kotlin/multiplatform project with kotlin >=2.0.20 that targets linux x64, the following error is being produced:
Copy code
e: Compilation failed: Found class org.jetbrains.kotlin.ir.declarations.IrFactory, but interface was expected
* Source files: FuzzyKtTest.kt
* Compiler version: 2.0.20
* Output kind: LIBRARY
e: java.lang.IncompatibleClassChangeError: Found class org.jetbrains.kotlin.ir.declarations.IrFactory, but interface was expected
I am able to build the same project perfectly fine when using kotlin 2.0.10 or kotlin 2.0.0
I am compiling this on a linux x86-64 device.
you can reproduce this by cloning this repo and then changing the