Fredrik Larsen
03/17/2021, 10:12 AMoperator
invoke?
I’m having an issue where it’s only accessible within the same (gradle) module.
operator fun Foo.invoke(block: FooDsl.() -> Unit) { ... }
fun Bar.invoke(block: BarDsl.() -> Unit) { ... }
I.e. the following does not work from another module
foo { // cannot resolve
}
However, this does
bar.invoke {
}
There are no declarations of invoke in the classes in question.
And for completeness this also works from another module
foo.invoke {
}
Fredrik Larsen
03/17/2021, 1:02 PMfoo.invoke {}
directly first and then change it too foo {}
So I’m assuming this is an IDE issue.Fredrik Larsen
03/17/2021, 2:06 PMFredrik Larsen
03/17/2021, 4:00 PMephemient
03/17/2021, 6:32 PMephemient
03/17/2021, 6:35 PMfoo({})
have working auto-import?