What is "test"(Test::class)?


#1

What is "test"(Test::class) for a language construct in the following example from the Gradle Kotlin DSL?

tasks {
    "test"(Test::class) {
        configure<JacocoTaskExtension> {
            isAppend = true
        }
    }
}

#2

The invocation operator has been added to String using an extension function:

operator fun String.invoke(clazz: Class<*>) {
}

Note: I am using java.lang.Class here, but Gradle might use KClass.