<https://youtrack.jetbrains.com/issue/KT-60601/K2-...
# k2-adopters
j
https://youtrack.jetbrains.com/issue/KT-60601/K2-Overload-resolution-ambiguity-between-candidates-inline-method Running into this with our kotlin js / fritz2 project
Copy code
> Task :compileKotlinJs
w: Language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
e: file:///Users/jillesvangurp/git/formation/formation-admin/src/jsMain/kotlin/users/usermanagement.kt:559:48 Overload resolution ambiguity between candidates: [fun <E : Event, X : Element> DomListener<E, X>.handledBy(handler: Handler<Unit>): Unit, fun <E : Event, X : Element> DomListener<E, X>.handledBy(execute: suspend (E) -> Unit): Job]
e: file:///Users/jillesvangurp/git/formation/formation-admin/src/jsMain/kotlin/users/usermanagement.kt:559:58 Overload resolution ambiguity between candidates: [fun confirm(text: String, vararg okHandlers: Array<out Handler<Unit>>): SimpleHandler<Unit>, fun <T> confirm(text: String, value: T, vararg okHandlers: Array<out Handler<T>>): SimpleHandler<Unit>, fun confirm(text: String, vararg okHandlers: Array<out Handler<Unit>>): SimpleHandler<Unit>, ...]

> Task :compileKotlinJs FAILED
##### 'kotlin.experimental.tryK2' results (Kotlin/Native not checked) #####
:compileKotlinJs: 2.0 language version
##### 100% (1/1) tasks have been compiled with Kotlin 2.0 #####
13 actionable tasks: 2 executed, 11 up-to-date

Waiting for changes to input files... (ctrl-d to exit)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileKotlinJs'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at <https://help.gradle.org>.

BUILD FAILED in 3s