1b7425f428
Before this commit, FIR mangler effectively dropped f/o parameter with invisible type from this module. It could lead to signature clashes. Now we insert classId in mangler string instead. This fixes FIR bootstrap.
37 lines
995 B
Kotlin
Vendored
37 lines
995 B
Kotlin
Vendored
// TARGET_BACKEND: JVM_IR
|
|
// WITH_RUNTIME
|
|
|
|
// MODULE: maven
|
|
// FILE: MavenProject.kt
|
|
|
|
interface MavenProject
|
|
|
|
// MODULE: lib(maven)
|
|
// FILE: lib.kt
|
|
|
|
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"
|
|
}
|