Hello, how can I reference a function that have m...
# announcements
g
Hello, how can I reference a function that have more than one overloads? For example in
org.jetbrains.kotlin.gradle.plugin.KotlinCompilation
we have 3 implementations for
defaultSourceSet
, But how can I use something like
org.jetbrains.kotlin.gradle.plugin.KotlinCompilation::defaultSourceSet
with the arguments
Copy code
configure: KotlinSourceSet.() -> Unit
?
d
The compiler will select the variant that makes sense unambiguously by looking at the expected lambda type of the expression.