Skip to content
New issue

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

Ambiguous error message when dealing with immutable properties #13

Open
dnagler opened this issue Sep 17, 2020 · 0 comments
Open

Ambiguous error message when dealing with immutable properties #13

dnagler opened this issue Sep 17, 2020 · 0 comments

Comments

@dnagler
Copy link

dnagler commented Sep 17, 2020

As we discussed on Slack, I ran into this stacktrace:

class kotlin.reflect.jvm.internal.KProperty1Impl cannot be cast to class kotlin.reflect.KMutableProperty1 (kotlin.reflect.jvm.internal.KProperty1Impl and kotlin.reflect.KMutableProperty1 are in unnamed module of loader 'app')
java.lang.ClassCastException: class kotlin.reflect.jvm.internal.KProperty1Impl cannot be cast to class kotlin.reflect.KMutableProperty1 (kotlin.reflect.jvm.internal.KProperty1Impl and kotlin.reflect.KMutableProperty1 are in unnamed module of loader 'app')
	at app.cash.tempest.internal.Binding.setDb(Codec.kt:188)

which didn't make it very obvious that the root cause was that I needed to change a val to a var.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant