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
sealed class ResourceState<out R> {
data class Success<out T>(val data: T) : ResourceState<T>()
data class Error(val throwable: Throwable) : ResourceState<Nothing>()
object Loading : ResourceState<Nothing>()
object Empty : ResourceState<Nothing>()
}
Generates generic class type T like this
public enum ResourceStateKs<R : AnyObject> {
case empty
case error(ResourceStateError)
case loading
case success(ResourceStateSuccess<T>)
...
Which says Cannot find type 'T' in scope.
I guess it should've been something like this
public enum ResourceStateKs<R : AnyObject, T: AnyObject> {
case empty
case error(ResourceStateError)
case loading
case success(ResourceStateSuccess<T>)
...
Is it possible to fix this and generate properly?
The text was updated successfully, but these errors were encountered:
Following code
Generates generic class type T like this
Which says Cannot find type 'T' in scope.
I guess it should've been something like this
Is it possible to fix this and generate properly?
The text was updated successfully, but these errors were encountered: