oops, I broke the compiler: ```Caused by: java.lan...
# compose
v
oops, I broke the compiler:
Copy code
Caused by: java.lang.IllegalArgumentException: Expected 2 params for <get-current>, but got 0
	at androidx.compose.compiler.plugins.kotlin.lower.ComposableFunctionBodyTransformer.visitNormalComposableCall(ComposableFunctionBodyTransformer.kt:2884)
does this ring any bells or should I open up a new issue?
Untitled
seems like it's caused by this invocation:
Copy code
object : ISettingsPageViewModel.PreviewBase(LocalContext.current) {}
this works:
Copy code
val context = LocalContext.current
object : ISettingsPageViewModel.PreviewBase(context) {}
is the above supposed to work though?
s
Is this on the latest version of compiler? It should work, and I remember fixing somewhat similar problem for K2
gratitude thank you 1
v
actually it seems I'm not on the latest compiler, this is on 1.5.7
I will test upgrading