Files
kotlin-fork/compiler/testData/codegen/box/fir/SamWithReceiverMavenProjectImportHandler.kt
T
Sergej Jaskiewicz e8aa05928d [FIR2IR] Unconditionally disable linkViaSignatures on JVM
It was an experimental compilation mode that we don't need anymore.

KT-64809
2024-01-19 13:35:59 +00:00

40 lines
1.0 KiB
Kotlin
Vendored

// WITH_STDLIB
// LINK_VIA_SIGNATURES_K1
// DUMP_SIGNATURES
// MODULE: maven
// FILE: MavenProject.kt
package maven
interface MavenProject
// MODULE: lib(maven)
// FILE: lib.kt
import maven.MavenProject
abstract class AbstractMavenImportHandler {
abstract fun getOptions(enabledCompilerPlugins: List<String>, compilerPluginOptions: List<String>): List<String>?
protected open fun getOptions(
mavenProject: MavenProject,
enabledCompilerPlugins: List<String>,
compilerPluginOptions: List<String>
): List<String>? = getOptions(enabledCompilerPlugins, compilerPluginOptions)
}
// MODULE: main(lib)
// FILE: sam.kt
class SamWithReceiverMavenProjectImportHandler : AbstractMavenImportHandler() {
override fun getOptions(enabledCompilerPlugins: List<String>, compilerPluginOptions: List<String>): List<String>? {
return null
}
}
// FILE: main.kt
fun box(): String {
val result = SamWithReceiverMavenProjectImportHandler()
return result.getOptions(emptyList(), emptyList())?.get(0) ?: "OK"
}