When enabling K2 on 1.8.20-RC2, I get a compiler e...
# k2-adopters
p
When enabling K2 on 1.8.20-RC2, I get a compiler error on
inherits conflicting members: exec, exec
on a class I inherit. The two methods in the base class (part of
JupyterReplTestCase
) are:
Copy code
fun exec(code: Code): Any? {
    return execEx(code).renderedValue
}

@JvmName("execTyped")
inline fun <reified T : Any> exec(code: Code): T {
   val res = exec(code)
   res.shouldBeInstanceOf<T>()
   return res
}
P.S Could very well be a compatibility issue since
JupyterReplTestCase
is compiled against on 1.8.0-Beta as far as I can tell and I run it against 1.8.20-RC2
i
Can you attach a sample project?
p
Will have a look if I can easily isolate and reproduce the issue in a sample project. But if not, the complete project is open source and can be easily reproduced there.
@Ivan Kubyshkin [JetBrains] Hereby a very simple project. Just a plain
mvn compile
generates the compile error.
i
@Peter thank you! I filed an issue - https://youtrack.jetbrains.com/issue/KT-57624
k
It's already fixed in master.