Kotlin DSL: fileTree(mapOf(...))
has unexpected behavior
#11335
Labels
Milestone
fileTree(mapOf(...))
has unexpected behavior
#11335
Expected behaviour
The expression
fileTree(mapOf("dir" to dir, "include" to listOf(glob)))
should be equivalent tofileTree(dir) { include(listOf(glob)) }
.Actual behaviour
The expression
fileTree(mapOf("dir" to dir, "include" to listOf(glob)))
is equivalent tofileTree(baseDir = mapOf(..))
which makes no sense.Tasks
KotlinScript
+ implicit receiver API surface compared to the 5.x script templatesThe text was updated successfully, but these errors were encountered: