You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Task :lib:compileKotlinJs FAILED
e: file:///Users/graham/Work/YNAB/slik/lib/build/generated/ksp/js/jsMain/kotlin/ynab/slik/data/repository/js/InvalidDataError.kt:11:5 Inheritance of sealed classes or interfaces from different module is prohibited
e: file:///Users/graham/Work/YNAB/slik/lib/build/generated/ksp/js/jsMain/kotlin/ynab/slik/data/repository/js/InvalidDataError.kt:11:5 Inheritor of sealed class or interface declared in package ynab.slik.data.repository.js but it must be in package ynab.slik.data.repository where base class is declared
FAILURE: Build failed with an exception.
If I change the sealed interface to sealed class, then it works.
It doesn't compile because ImportedInvalidDataError is trying to implement CommonInvalidDataError which is the original sealed interface, and it's in a different package (not the .js package).
This fails to compile:
If I change the
sealed interface
tosealed class
, then it works.The text was updated successfully, but these errors were encountered: