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
public enum AnemoneException: Error {
case notFound
case network(HttpResponse, Error?)
}
Can be translated to a sealed class. However, the current version does not work because of the inheritance clause. Removing the inheritance translates to:
public sealed class AnemoneException {
object notFound : AnemoneException()
data class network(val v1: HttpResponse, val v2: Error?) : AnemoneException()
}
The text was updated successfully, but these errors were encountered:
This swift enum:
Can be translated to a sealed class. However, the current version does not work because of the inheritance clause. Removing the inheritance translates to:
The text was updated successfully, but these errors were encountered: