We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Kotlin 1.1 subjects can't be delegated locally, there is a compile error.
1.1
object MySpec: SubjectSpek<Foo>({ val subject by subject { ... } })
The issue is caused by how LifecycleAware is implemented (this also means that using memoized causes the same issue).
LifecycleAware
interface LifecycleAware<T>: ReadOnlyProperty<LifecycleAware<T>, T>
It should be declared as
interface LifecycleAware<T>: ReadOnlyProperty<Any, T>
The text was updated successfully, but these errors were encountered:
Allow local delegation for LifecycleAware objects
a28eb63
Resolves #172.
No branches or pull requests
In Kotlin
1.1
subjects can't be delegated locally, there is a compile error.The issue is caused by how
LifecycleAware
is implemented (this also means that using memoized causes the same issue).It should be declared as
The text was updated successfully, but these errors were encountered: