What's the error?
# announcements
k
What's the error?
t
added above
k
You're right, I get the same error. Strange.
t
yeah i feel like i’m losing my mind lol
k
The new type inference fixes it, I'm not sure what's going on here.
I'd still file an issue.
t
new type inference?
That's literally what it's called 🙂
t
OK i got this to work by adding
MealPalDialog.OnButtonClickListener
to the beginning of the second param
so
Copy code
fun foo(onCancel: OnButtonClickListener) {
  Dialogs.showDialog(activity,
              OnButtonClickListener  { dialog, button ->
                    viewModel.doSomething()
                    dialog.dismiss()
                },
                onCancel
        )
}
that ^ works
k
Ah sorry, I was so confused I forgot to actually reply with a solution. Glad you figured it out!
👍 1