// RUN_PIPELINE_TILL: BACKEND
// FIR_IDENTICAL

// MODULE: m1-common

// FILE: common.kt

expect open class Foo {
    fun existingMethod()
}

// MODULE: m2-jvm()()(m1-common)

// FILE: jvm.kt

actual typealias Foo = FooImpl

// FILE: FooImpl.java

public class FooImpl {
    public void existingMethod() {}

    public void injectedMethod() {}
}

/* GENERATED_FIR_TAGS: actual, classDeclaration, expect, functionDeclaration, javaType, typeAliasDeclaration */
