>Unsupported declaration type: VALUE_PARAMETER ...
# gradle
h
Unsupported declaration type: VALUE_PARAMETER File name: build.gradle.kts Physical: true Injected: false
Copy code
val SourceSet.kotlin: SourceDirectorySet
    get() = (this as HasConvention).convention.getPlugin<KotlinSourceSet>().kotlin
var SourceDirectorySet.sourceDirs: Iterable<File>
    get() = srcDirs
    set(<caret>value) { setSrcDirs(value) }
Using:
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.1-20170624053347+0000-all.zip
p
hastebrot: Reported https://youtrack.jetbrains.com/issue/KT-18676 to track this issue. Seems there is a problem with custom setters in script files.